/*
 * 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 l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F<J;F++){var G=M[F];if(G.selected){K=o(G).val();if(H){return K}L.push(K)}}return L}return(E.value||"").replace(/\r/g,"")}return g}if(typeof K==="number"){K+=""}return this.each(function(){if(this.nodeType!=1){return}if(o.isArray(K)&&/radio|checkbox/.test(this.type)){this.checked=(o.inArray(this.value,K)>=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G<E;G++){L.call(K(this[G],H),this.length>1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H<I;H++){if((G=arguments[H])!=null){for(var F in G){var K=J[F],L=G[F];if(J===L){continue}if(E&&L&&typeof L==="object"&&!L.nodeType){J[F]=o.extend(E,K||(L.length!=null?[]:{}),L)}else{if(L!==g){J[F]=L}}}}}return J};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,q=document.defaultView||{},s=Object.prototype.toString;o.extend({noConflict:function(E){l.$=p;if(E){l.jQuery=y}return o},isFunction:function(E){return s.call(E)==="[object Function]"},isArray:function(E){return s.call(E)==="[object Array]"},isXMLDoc:function(E){return E.nodeType===9&&E.documentElement.nodeName!=="HTML"||!!E.ownerDocument&&o.isXMLDoc(E.ownerDocument)},globalEval:function(G){if(G&&/\S/.test(G)){var F=document.getElementsByTagName("head")[0]||document.documentElement,E=document.createElement("script");E.type="text/javascript";if(o.support.scriptEval){E.appendChild(document.createTextNode(G))}else{E.text=G}F.insertBefore(E,F.firstChild);F.removeChild(E)}},nodeName:function(F,E){return F.nodeName&&F.nodeName.toUpperCase()==E.toUpperCase()},each:function(G,K,F){var E,H=0,I=G.length;if(F){if(I===g){for(E in G){if(K.apply(G[E],F)===false){break}}}else{for(;H<I;){if(K.apply(G[H++],F)===false){break}}}}else{if(I===g){for(E in G){if(K.call(G[E],E,G[E])===false){break}}}else{for(var J=G[0];H<I&&K.call(J,H,J)!==false;J=G[++H]){}}}return G},prop:function(H,I,G,F,E){if(o.isFunction(I)){I=I.call(H,F)}return typeof I==="number"&&G=="curCSS"&&!b.test(E)?I+"px":I},className:{add:function(E,F){o.each((F||"").split(/\s+/),function(G,H){if(E.nodeType==1&&!o.className.has(E.className,H)){E.className+=(E.className?" ":"")+H}})},remove:function(E,F){if(E.nodeType==1){E.className=F!==g?o.grep(E.className.split(/\s+/),function(G){return !o.className.has(F,G)}).join(" "):""}},has:function(F,E){return F&&o.inArray(E,(F.className||F).toString().split(/\s+/))>-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+"></"+T+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!O.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!O.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!O.indexOf("<td")||!O.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!O.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!o.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/<tbody/i.test(S),N=!O.indexOf("<table")&&!R?L.firstChild&&L.firstChild.childNodes:Q[1]=="<table>"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E<F;E++){if(H[E]===G){return E}}return -1},merge:function(H,E){var F=0,G,I=H.length;if(!o.support.getAll){while((G=E[F++])!=null){if(G.nodeType!=8){H[I++]=G}}}else{while((G=E[F++])!=null){H[I++]=G}}return H},unique:function(K){var F=[],E={};try{for(var G=0,H=K.length;G<H;G++){var J=o.data(K[G]);if(!E[J]){E[J]=true;F.push(K[G])}}}catch(I){F=K}return F},grep:function(F,J,E){var G=[];for(var H=0,I=F.length;H<I;H++){if(!E!=!J(F[H],H)){G.push(F[H])}}return G},map:function(E,J){var F=[];for(var G=0,H=E.length;G<H;G++){var I=J(E[G],G);if(I!=null){F[F.length]=I}}return F.concat.apply([],F)}});var C=navigator.userAgent.toLowerCase();o.browser={version:(C.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(C),opera:/opera/.test(C),msie:/msie/.test(C)&&!/opera/.test(C),mozilla:/mozilla/.test(C)&&!/(compatible|webkit)/.test(C)};o.each({parent:function(E){return E.parentNode},parents:function(E){return o.dir(E,"parentNode")},next:function(E){return o.nth(E,2,"nextSibling")},prev:function(E){return o.nth(E,2,"previousSibling")},nextAll:function(E){return o.dir(E,"nextSibling")},prevAll:function(E){return o.dir(E,"previousSibling")},siblings:function(E){return o.sibling(E.parentNode.firstChild,E)},children:function(E){return o.sibling(E.firstChild)},contents:function(E){return o.nodeName(E,"iframe")?E.contentDocument||E.contentWindow.document:o.makeArray(E.childNodes)}},function(E,F){o.fn[E]=function(G){var H=o.map(this,F);if(G&&typeof G=="string"){H=o.multiFilter(G,H)}return this.pushStack(o.unique(H),E,G)}});o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(E,F){o.fn[E]=function(G){var J=[],L=o(G);for(var K=0,H=L.length;K<H;K++){var I=(K>0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}});
/*
 * 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 R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa<ab.length;aa++){if(ab[aa]===ab[aa-1]){ab.splice(aa--,1)}}}}}return ab};F.matches=function(T,U){return F(T,null,null,U)};F.find=function(aa,T,ab){var Z,X;if(!aa){return[]}for(var W=0,V=I.order.length;W<V;W++){var Y=I.order[W],X;if((X=I.match[Y].exec(aa))){var U=RegExp.leftContext;if(U.substr(U.length-1)!=="\\"){X[1]=(X[1]||"").replace(/\\/g,"");Z=I.find[Y](X,T,ab);if(Z!=null){aa=aa.replace(I.match[Y],"");break}}}}if(!Z){Z=T.getElementsByTagName("*")}return{set:Z,expr:aa}};F.filter=function(ad,ac,ag,W){var V=ad,ai=[],aa=ac,Y,T,Z=ac&&ac[0]&&Q(ac[0]);while(ad&&ac.length){for(var ab in I.filter){if((Y=I.match[ab].exec(ad))!=null){var U=I.filter[ab],ah,af;T=false;if(aa==ai){ai=[]}if(I.preFilter[ab]){Y=I.preFilter[ab](Y,aa,ag,ai,W,Z);if(!Y){T=ah=true}else{if(Y===true){continue}}}if(Y){for(var X=0;(af=aa[X])!=null;X++){if(af){ah=U(af,Y,X,aa);var ae=W^!!ah;if(ag&&ah!=null){if(ae){T=true}else{aa[X]=false}}else{if(ae){ai.push(af);T=true}}}}}if(ah!==g){if(!ag){aa=ai}ad=ad.replace(I.match[ab],"");if(!T){return[]}break}}}if(ad==V){if(T==null){throw"Syntax error, unrecognized expression: "+ad}else{break}}V=ad}return aa};var I=F.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(T){return T.getAttribute("href")}},relative:{"+":function(aa,T,Z){var X=typeof T==="string",ab=X&&!/\W/.test(T),Y=X&&!ab;if(ab&&!Z){T=T.toUpperCase()}for(var W=0,V=aa.length,U;W<V;W++){if((U=aa[W])){while((U=U.previousSibling)&&U.nodeType!==1){}aa[W]=Y||U&&U.nodeName===T?U||false:U===T}}if(Y){F.filter(T,aa,true)}},">":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){var W=Y.parentNode;Z[V]=W.nodeName===U?W:false}}}else{for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){Z[V]=X?Y.parentNode:Y.parentNode===U}}if(X){F.filter(U,Z,true)}}},"":function(W,U,Y){var V=L++,T=S;if(!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("parentNode",U,V,W,X,Y)},"~":function(W,U,Y){var V=L++,T=S;if(typeof U==="string"&&!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("previousSibling",U,V,W,X,Y)}},find:{ID:function(U,V,W){if(typeof V.getElementById!=="undefined"&&!W){var T=V.getElementById(U[1]);return T?[T]:[]}},NAME:function(V,Y,Z){if(typeof Y.getElementsByName!=="undefined"){var U=[],X=Y.getElementsByName(V[1]);for(var W=0,T=X.length;W<T;W++){if(X[W].getAttribute("name")===V[1]){U.push(X[W])}}return U.length===0?null:U}},TAG:function(T,U){return U.getElementsByTagName(T[1])}},preFilter:{CLASS:function(W,U,V,T,Z,aa){W=" "+W[1].replace(/\\/g,"")+" ";if(aa){return W}for(var X=0,Y;(Y=U[X])!=null;X++){if(Y){if(Z^(Y.className&&(" "+Y.className+" ").indexOf(W)>=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return U<T[3]-0},gt:function(V,U,T){return U>T[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W<T;W++){if(Y[W]===Z){return false}}return true}}}},CHILD:function(T,W){var Z=W[1],U=T;switch(Z){case"only":case"first":while(U=U.previousSibling){if(U.nodeType===1){return false}}if(Z=="first"){return true}U=T;case"last":while(U=U.nextSibling){if(U.nodeType===1){return false}}return true;case"nth":var V=W[2],ac=W[3];if(V==1&&ac==0){return true}var Y=W[0],ab=T.parentNode;if(ab&&(ab.sizcache!==Y||!T.nodeIndex)){var X=0;for(U=ab.firstChild;U;U=U.nextSibling){if(U.nodeType===1){U.nodeIndex=++X}}ab.sizcache=Y}var aa=T.nodeIndex-ac;if(V==0){return aa==0}else{return(aa%V==0&&aa/V>=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V<T;V++){U.push(X[V])}}else{for(var V=0;X[V];V++){U.push(X[V])}}}return U}}var G;if(document.documentElement.compareDocumentPosition){G=function(U,T){var V=U.compareDocumentPosition(T)&4?-1:U===T?0:1;if(V===0){hasDuplicate=true}return V}}else{if("sourceIndex" in document.documentElement){G=function(U,T){var V=U.sourceIndex-T.sourceIndex;if(V===0){hasDuplicate=true}return V}}else{if(document.createRange){G=function(W,U){var V=W.ownerDocument.createRange(),T=U.ownerDocument.createRange();V.selectNode(W);V.collapse(true);T.selectNode(U);T.collapse(true);var X=V.compareBoundaryPoints(Range.START_TO_END,T);if(X===0){hasDuplicate=true}return X}}}}(function(){var U=document.createElement("form"),V="script"+(new Date).getTime();U.innerHTML="<input name='"+V+"'/>";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="<a href='#'></a>";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="<p class='TEST'></p>";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="<div class='test e'></div><div class='test'></div>";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1&&!ac){T.sizcache=Y;T.sizset=W}if(T.nodeName===Z){X=T;break}T=T[U]}ad[W]=X}}}function S(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1){if(!ac){T.sizcache=Y;T.sizset=W}if(typeof Z!=="string"){if(T===Z){X=true;break}}else{if(F.filter(Z,[T]).length>0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z<U;Z++){F(T,V[Z],W)}return F.filter(X,W)};o.find=F;o.filter=F.filter;o.expr=F.selectors;o.expr[":"]=o.expr.filters;F.selectors.filters.hidden=function(T){return T.offsetWidth===0||T.offsetHeight===0};F.selectors.filters.visible=function(T){return T.offsetWidth>0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.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(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F<E.length){o.event.proxy(G,E[F++])}return this.click(o.event.proxy(G,function(H){this.lastToggle=(this.lastToggle||0)%F;H.preventDefault();return E[this.lastToggle++].apply(this,arguments)||false}))},hover:function(E,F){return this.mouseenter(E).mouseleave(F)},ready:function(E){B();if(o.isReady){E.call(document,o)}else{o.readyList.push(E)}return this},live:function(G,F){var E=o.event.proxy(F);E.guid+=this.selector+G;o(document).bind(i(G,this.selector),this.selector,E);return this},die:function(F,E){o(document).unbind(i(F,this.selector),E?{guid:E.guid+this.selector+F}:null);return this}});function c(H){var E=RegExp("(^|\\.)"+H.type+"(\\.|$)"),G=true,F=[];o.each(o.data(this,"events").live||[],function(I,J){if(E.test(J.type)){var K=o(H.target).closest(J.data)[0];if(K){F.push({elem:K,fn:J})}}});F.sort(function(J,I){return o.data(J.elem,"closest")-o.data(I.elem,"closest")});o.each(F,function(){if(this.fn.call(this.elem,H,this.fn.data)===false){return(G=false)}});return G}function i(F,E){return["live",F,E.replace(/\./g,"`").replace(/ /g,"|")].join(".")}o.extend({isReady:false,readyList:[],ready:function(){if(!o.isReady){o.isReady=true;if(o.readyList){o.each(o.readyList,function(){this.call(document,o)});o.readyList=null}o(document).triggerHandler("ready")}}});var x=false;function B(){if(x){return}x=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);o.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);o.ready()}});if(document.documentElement.doScroll&&l==l.top){(function(){if(o.isReady){return}try{document.documentElement.doScroll("left")}catch(E){setTimeout(arguments.callee,0);return}o.ready()})()}}}o.event.add(l,"load",o.ready)}o.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(F,E){o.fn[E]=function(G){return G?this.bind(E,G):this.trigger(E)}});o(l).bind("unload",function(){for(var E in o.cache){if(E!=1&&o.cache[E].handle){o.event.remove(o.cache[E].handle.elem)}}});(function(){o.support={};var F=document.documentElement,G=document.createElement("script"),K=document.createElement("div"),J="script"+(new Date).getTime();K.style.display="none";K.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 H=K.getElementsByTagName("*"),E=K.getElementsByTagName("a")[0];if(!H||!H.length||!E){return}o.support={leadingWhitespace:K.firstChild.nodeType==3,tbody:!K.getElementsByTagName("tbody").length,objectAll:!!K.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(E.getAttribute("style")),hrefNormalized:E.getAttribute("href")==="/a",opacity:E.style.opacity==="0.5",cssFloat:!!E.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(document.createTextNode("window."+J+"=1;"))}catch(I){}F.insertBefore(G,F.firstChild);if(l[J]){o.support.scriptEval=true;delete l[J]}F.removeChild(G);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function(){o.support.noCloneEvent=false;K.detachEvent("onclick",arguments.callee)});K.cloneNode(true).fireEvent("onclick")}o(function(){var L=document.createElement("div");L.style.width=L.style.paddingLeft="1px";document.body.appendChild(L);o.boxModel=o.support.boxModel=L.offsetWidth===2;document.body.removeChild(L).style.display="none"})})();var w=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.fn.load,load:function(G,J,K){if(typeof G!=="string"){return this._load(G)}var I=G.indexOf(" ");if(I>=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("<div/>").append(M.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.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(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.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(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H<F;H++){var E=o.data(this[H],"olddisplay");this[H].style.display=E||"";if(o.css(this[H],"display")==="none"){var G=this[H].tagName,K;if(m[G]){K=m[G]}else{var I=o("<"+G+" />").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H<F;H++){this[H].style.display=o.data(this[H],"olddisplay")||""}return this}},hide:function(H,I){if(H){return this.animate(t("hide",3),H,I)}else{for(var G=0,F=this.length;G<F;G++){var E=o.data(this[G],"olddisplay");if(!E&&E!=="none"){o.data(this[G],"olddisplay",o.css(this[G],"display"))}}for(var G=0,F=this.length;G<F;G++){this[G].style.display="none"}return this}},_toggle:o.fn.toggle,toggle:function(G,F){var E=typeof G==="boolean";return o.isFunction(G)&&o.isFunction(F)?this._toggle.apply(this,arguments):G==null||E?this.each(function(){var H=E?G:o(this).is(":hidden");o(this)[H?"show":"hide"]()}):this.animate(t("toggle",3),G,F)},fadeTo:function(E,G,F){return this.animate({opacity:G},E,F)},animate:function(I,F,H,G){var E=o.speed(F,H,G);return this[E.queue===false?"each":"queue"](function(){var K=o.extend({},E),M,L=this.nodeType==1&&o(this).is(":hidden"),J=this;for(M in I){if(I[M]=="hide"&&L||I[M]=="show"&&!L){return K.complete.call(this)}if((M=="height"||M=="width")&&this.style){K.display=o.css(this,"display");K.overflow=this.style.overflow}}if(K.overflow!=null){this.style.overflow="hidden"}K.curAnim=o.extend({},I);o.each(I,function(O,S){var R=new o.fx(J,K,O);if(/toggle|show|hide/.test(S)){R[S=="toggle"?L?"show":"hide":S](I)}else{var Q=S.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),T=R.cur(true)||0;if(Q){var N=parseFloat(Q[2]),P=Q[3]||"px";if(P!="px"){J.style[O]=(N||1)+P;T=((N||1)/R.cur(true))*T;J.style[O]=T+P}if(Q[1]){N=((Q[1]=="-="?-1:1)*N)+T}R.custom(T,N,P)}else{R.custom(T,S,"")}}});return true})},stop:function(F,E){var G=o.timers;if(F){this.queue([])}this.each(function(){for(var H=G.length-1;H>=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J<K.length;J++){if(!K[J]()){K.splice(J--,1)}}if(!K.length){clearInterval(n);n=g}},13)}},show:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());o(this.elem).show()},hide:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(H){var G=e();if(H||G>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='<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>';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})();;

var Drupal = Drupal || { 'settings': {}, 'behaviors': {}, 'themes': {}, 'locale': {} };

/**
 * Set the variable that indicates if JavaScript behaviors should be applied
 */
Drupal.jsEnabled = document.getElementsByTagName && document.createElement && document.createTextNode && document.documentElement && document.getElementById;

/**
 * Attach all registered behaviors to a page element.
 *
 * Behaviors are event-triggered actions that attach to page elements, enhancing
 * default non-Javascript UIs. Behaviors are registered in the Drupal.behaviors
 * object as follows:
 * @code
 *    Drupal.behaviors.behaviorName = function () {
 *      ...
 *    };
 * @endcode
 *
 * Drupal.attachBehaviors is added below to the jQuery ready event and so
 * runs on initial page load. Developers implementing AHAH/AJAX in their
 * solutions should also call this function after new page content has been
 * loaded, feeding in an element to be processed, in order to attach all
 * behaviors to the new content.
 *
 * Behaviors should use a class in the form behaviorName-processed to ensure
 * the behavior is attached only once to a given element. (Doing so enables
 * the reprocessing of given elements, which may be needed on occasion despite
 * the ability to limit behavior attachment to a particular element.)
 *
 * @param context
 *   An element to attach behaviors to. If none is given, the document element
 *   is used.
 */
Drupal.attachBehaviors = function(context) {
  context = context || document;
  if (Drupal.jsEnabled) {
    // Execute all of them.
    jQuery.each(Drupal.behaviors, function() {
      this(context);
    });
  }
};

/**
 * Encode special characters in a plain-text string for display as HTML.
 */
Drupal.checkPlain = function(str) {
  str = String(str);
  var replace = { '&': '&amp;', '"': '&quot;', '<': '&lt;', '>': '&gt;' };
  for (var character in replace) {
    var regex = new RegExp(character, 'g');
    str = str.replace(regex, replace[character]);
  }
  return str;
};

/**
 * Translate strings to the page language or a given language.
 *
 * See the documentation of the server-side t() function for further details.
 *
 * @param str
 *   A string containing the English string to translate.
 * @param args
 *   An object of replacements pairs to make after translation. Incidences
 *   of any key in this array are replaced with the corresponding value.
 *   Based on the first character of the key, the value is escaped and/or themed:
 *    - !variable: inserted as is
 *    - @variable: escape plain text to HTML (Drupal.checkPlain)
 *    - %variable: escape text and theme as a placeholder for user-submitted
 *      content (checkPlain + Drupal.theme('placeholder'))
 * @return
 *   The translated string.
 */
Drupal.t = function(str, args) {
  // Fetch the localized version of the string.
  if (Drupal.locale.strings && Drupal.locale.strings[str]) {
    str = Drupal.locale.strings[str];
  }

  if (args) {
    // Transform arguments before inserting them
    for (var key in args) {
      switch (key.charAt(0)) {
        // Escaped only
        case '@':
          args[key] = Drupal.checkPlain(args[key]);
        break;
        // Pass-through
        case '!':
          break;
        // Escaped and placeholder
        case '%':
        default:
          args[key] = Drupal.theme('placeholder', args[key]);
          break;
      }
      str = str.replace(key, args[key]);
    }
  }
  return str;
};

/**
 * Format a string containing a count of items.
 *
 * This function ensures that the string is pluralized correctly. Since Drupal.t() is
 * called by this function, make sure not to pass already-localized strings to it.
 *
 * See the documentation of the server-side format_plural() function for further details.
 *
 * @param count
 *   The item count to display.
 * @param singular
 *   The string for the singular case. Please make sure it is clear this is
 *   singular, to ease translation (e.g. use "1 new comment" instead of "1 new").
 *   Do not use @count in the singular string.
 * @param plural
 *   The string for the plural case. Please make sure it is clear this is plural,
 *   to ease translation. Use @count in place of the item count, as in "@count
 *   new comments".
 * @param args
 *   An object of replacements pairs to make after translation. Incidences
 *   of any key in this array are replaced with the corresponding value.
 *   Based on the first character of the key, the value is escaped and/or themed:
 *    - !variable: inserted as is
 *    - @variable: escape plain text to HTML (Drupal.checkPlain)
 *    - %variable: escape text and theme as a placeholder for user-submitted
 *      content (checkPlain + Drupal.theme('placeholder'))
 *   Note that you do not need to include @count in this array.
 *   This replacement is done automatically for the plural case.
 * @return
 *   A translated string.
 */
Drupal.formatPlural = function(count, singular, plural, args) {
  var args = args || {};
  args['@count'] = count;
  // Determine the index of the plural form.
  var index = Drupal.locale.pluralFormula ? Drupal.locale.pluralFormula(args['@count']) : ((args['@count'] == 1) ? 0 : 1);

  if (index == 0) {
    return Drupal.t(singular, args);
  }
  else if (index == 1) {
    return Drupal.t(plural, args);
  }
  else {
    args['@count['+ index +']'] = args['@count'];
    delete args['@count'];
    return Drupal.t(plural.replace('@count', '@count['+ index +']'));
  }
};

/**
 * Generate the themed representation of a Drupal object.
 *
 * All requests for themed output must go through this function. It examines
 * the request and routes it to the appropriate theme function. If the current
 * theme does not provide an override function, the generic theme function is
 * called.
 *
 * For example, to retrieve the HTML that is output by theme_placeholder(text),
 * call Drupal.theme('placeholder', text).
 *
 * @param func
 *   The name of the theme function to call.
 * @param ...
 *   Additional arguments to pass along to the theme function.
 * @return
 *   Any data the theme function returns. This could be a plain HTML string,
 *   but also a complex object.
 */
Drupal.theme = function(func) {
  for (var i = 1, args = []; i < arguments.length; i++) {
    args.push(arguments[i]);
  }

  return (Drupal.theme[func] || Drupal.theme.prototype[func]).apply(this, args);
};

/**
 * Parse a JSON response.
 *
 * The result is either the JSON object, or an object with 'status' 0 and 'data' an error message.
 */
Drupal.parseJson = function (data) {
  if ((data.substring(0, 1) != '{') && (data.substring(0, 1) != '[')) {
    return { status: 0, data: data.length ? data : Drupal.t('Unspecified error') };
  }
  return eval('(' + data + ');');
};

/**
 * Freeze the current body height (as minimum height). Used to prevent
 * unnecessary upwards scrolling when doing DOM manipulations.
 */
Drupal.freezeHeight = function () {
  Drupal.unfreezeHeight();
  var div = document.createElement('div');
  $(div).css({
    position: 'absolute',
    top: '0px',
    left: '0px',
    width: '1px',
    height: $('body').css('height')
  }).attr('id', 'freeze-height');
  $('body').append(div);
};

/**
 * Unfreeze the body height
 */
Drupal.unfreezeHeight = function () {
  $('#freeze-height').remove();
};

/**
 * Wrapper around encodeURIComponent() which avoids Apache quirks (equivalent of
 * drupal_urlencode() in PHP). This function should only be used on paths, not
 * on query string arguments.
 */
Drupal.encodeURIComponent = function (item, uri) {
  uri = uri || location.href;
  item = encodeURIComponent(item).replace(/%2F/g, '/');
  return (uri.indexOf('?q=') != -1) ? item : item.replace(/%26/g, '%2526').replace(/%23/g, '%2523').replace(/\/\//g, '/%252F');
};

/**
 * Get the text selection in a textarea.
 */
Drupal.getSelection = function (element) {
  if (typeof(element.selectionStart) != 'number' && document.selection) {
    // The current selection
    var range1 = document.selection.createRange();
    var range2 = range1.duplicate();
    // Select all text.
    range2.moveToElementText(element);
    // Now move 'dummy' end point to end point of original range.
    range2.setEndPoint('EndToEnd', range1);
    // Now we can calculate start and end points.
    var start = range2.text.length - range1.text.length;
    var end = start + range1.text.length;
    return { 'start': start, 'end': end };
  }
  return { 'start': element.selectionStart, 'end': element.selectionEnd };
};

/**
 * Build an error message from ahah response.
 */
Drupal.ahahError = function(xmlhttp, uri) {
  if (xmlhttp.status == 200) {
    if (jQuery.trim($(xmlhttp.responseText).text())) {
      var message = Drupal.t("An error occurred. \n@uri\n@text", {'@uri': uri, '@text': xmlhttp.responseText });
    }
    else {
      var message = Drupal.t("An error occurred. \n@uri\n(no information available).", {'@uri': uri, '@text': xmlhttp.responseText });
    }
  }
  else {
    var message = Drupal.t("An HTTP error @status occurred. \n@uri", {'@uri': uri, '@status': xmlhttp.status });
  }
  return message;
}

// Global Killswitch on the <html> element
if (Drupal.jsEnabled) {
  // Global Killswitch on the <html> element
  $(document.documentElement).addClass('js');
  // 'js enabled' cookie
  document.cookie = 'has_js=1; path=/';
  // Attach all behaviors.
  $(document).ready(function() {
    Drupal.attachBehaviors(this);
  });
}

/**
 * The default themes.
 */
Drupal.theme.prototype = {

  /**
   * Formats text for emphasized display in a placeholder inside a sentence.
   *
   * @param str
   *   The text to format (plain-text).
   * @return
   *   The formatted text (html).
   */
  placeholder: function(str) {
    return '<em>' + Drupal.checkPlain(str) + '</em>';
  }
};
;
// $Id: ajax_load.js,v 1.11 2009/09/20 14:22:29 markuspetrux Exp $

(function ($) {

Drupal.AjaxLoad = Drupal.AjaxLoad || { externalScripts: [], loadPending: [] };

/**
 * Load JavaScript and CSS files and data. 
 */
Drupal.AjaxLoad.loadFiles = function (target, response) {
  // Handle scripts.

  // Initialize the list of currently loaded external scripts.
  if (Drupal.AjaxLoad.externalScripts.length < 1) {
    $('script[src]').each(function() {
      Drupal.AjaxLoad.externalScripts.push($(this).attr('src'));
    });
  }
  // See if we have any settings to extend. Do this first so that behaviors
  // can access the new settings easily.
  if (response.scripts) {
    // Each Ajax operation needs its own counter.
    var index = Drupal.AjaxLoad.loadPending.length;
    Drupal.AjaxLoad.loadPending[index] = 0;
    if (!response.__customSettings && response.scripts.setting) {
      $.extend(Drupal.settings, response.scripts.setting);
    }
    // Inline scripts will be handled separately.
    var types = ['core', 'module', 'theme'];
    $.each(types, function (i, type) {
      if (response.scripts[type]) {
        $.each(response.scripts[type], function (src, data) {
          // Load scripts.
          src = Drupal.settings.basePath + src;
          // Test if the script already exists.
          var found = false;
          for (var j = 0; j < Drupal.AjaxLoad.externalScripts.length; j++) {
            if (Drupal.AjaxLoad.externalScripts[j].indexOf(src) == 0) {
              found = true;
              break;
            }
          }
          if (!found) {
            Drupal.AjaxLoad.loadPending[index]++;
            $.getScript(src, function () {
              Drupal.AjaxLoad.externalScripts.push(src);
              Drupal.AjaxLoad.loadComplete(index, target, response);
            });
          }
        });
      }
    });
    // Ensure Drupal behaviors are attached to new content, even when no
    // new external scripts have been loaded.
    if (Drupal.AjaxLoad.loadPending[index] == 0) {
      Drupal.attachBehaviors(target);
      // Ensure inline scripts are parsed after all external scripts have loaded.
      Drupal.AjaxLoad.loadInline(response);
    }
  }
  if (response.css) {
    // Handle stylesheets.
    var types = ['module', 'theme'];
    $.each(response.css, function (media, files) {
      $.each(types, function (i, type) {
        if (files[type]) {
          $.each(files[type], function (src, data) {
            src = Drupal.settings.basePath + src;
            // Test if the stylesheet already exists.
            if (!$('link[href*=' + src + ']').size()) {
              $('<link type="text/css" rel="stylesheet" media="' + media + '" href="' + src + '" />').appendTo('head');
            }
          });
        }
      });
    });
  }
};

/**
 * When all scripts have loaded, attach behaviors. 
 */
Drupal.AjaxLoad.loadInline = function(response) {
  // Handle inline scripts.
  if (response.scripts.inline) {
    $.each(response.scripts.inline, function (i, script) {
      // document.write calls would mess things up.
      if (script.code.indexOf('document.write') == -1) {
        eval(script.code);
      }
    });
  }
};

/**
 * When all scripts have loaded, attach behaviors. 
 */
Drupal.AjaxLoad.loadComplete = function(index, target, response) {
  Drupal.AjaxLoad.loadPending[index]--;
  if (Drupal.AjaxLoad.loadPending[index] == 0) {
    Drupal.attachBehaviors(target);
    // Ensure inline scripts are parsed after all external scripts have loaded.
    Drupal.AjaxLoad.loadInline(response);
  }
};

})(jQuery);
;
/*
 * Shadowbox.js, version 3.0.3
 * http://shadowbox-js.com/
 *
 * Copyright 2007-2010, Michael J. I. Jackson
 * Date: 2011-02-23 22:03:07 +0000
 */
(function(window,undefined){var S={version:"3.0.3"};var ua=navigator.userAgent.toLowerCase();if(ua.indexOf("windows")>-1||ua.indexOf("win32")>-1){S.isWindows=true}else{if(ua.indexOf("macintosh")>-1||ua.indexOf("mac os x")>-1){S.isMac=true}else{if(ua.indexOf("linux")>-1){S.isLinux=true}}}S.isIE=ua.indexOf("msie")>-1;S.isIE6=ua.indexOf("msie 6")>-1;S.isIE7=ua.indexOf("msie 7")>-1;S.isGecko=ua.indexOf("gecko")>-1&&ua.indexOf("safari")==-1;S.isWebKit=ua.indexOf("applewebkit/")>-1;var inlineId=/#(.+)$/,galleryName=/^(light|shadow)box\[(.*?)\]/i,inlineParam=/\s*([a-z_]*?)\s*=\s*(.+)\s*/,fileExtension=/[0-9a-z]+$/i,scriptPath=/(.+\/)shadowbox\.js/i;var open=false,initialized=false,lastOptions={},slideDelay=0,slideStart,slideTimer;S.current=-1;S.dimensions=null;S.ease=function(state){return 1+Math.pow(state-1,3)};S.errorInfo={fla:{name:"Flash",url:"http://www.adobe.com/products/flashplayer/"},qt:{name:"QuickTime",url:"http://www.apple.com/quicktime/download/"},wmp:{name:"Windows Media Player",url:"http://www.microsoft.com/windows/windowsmedia/"},f4m:{name:"Flip4Mac",url:"http://www.flip4mac.com/wmv_download.htm"}};S.gallery=[];S.onReady=noop;S.path=null;S.player=null;S.playerId="sb-player";S.options={animate:true,animateFade:true,autoplayMovies:true,continuous:false,enableKeys:true,flashParams:{bgcolor:"#000000",allowfullscreen:true},flashVars:{},flashVersion:"9.0.115",handleOversize:"resize",handleUnsupported:"link",onChange:noop,onClose:noop,onFinish:noop,onOpen:noop,showMovieControls:true,skipSetup:false,slideshowDelay:0,viewportPadding:20};S.getCurrent=function(){return S.current>-1?S.gallery[S.current]:null};S.hasNext=function(){return S.gallery.length>1&&(S.current!=S.gallery.length-1||S.options.continuous)};S.isOpen=function(){return open};S.isPaused=function(){return slideTimer=="pause"};S.applyOptions=function(options){lastOptions=apply({},S.options);apply(S.options,options)};S.revertOptions=function(){apply(S.options,lastOptions)};S.init=function(options,callback){if(initialized){return}initialized=true;if(S.skin.options){apply(S.options,S.skin.options)}if(options){apply(S.options,options)}if(!S.path){var path,scripts=document.getElementsByTagName("script");for(var i=0,len=scripts.length;i<len;++i){path=scriptPath.exec(scripts[i].src);if(path){S.path=path[1];break}}}if(callback){S.onReady=callback}bindLoad()};S.open=function(obj){if(open){return}var gc=S.makeGallery(obj);S.gallery=gc[0];S.current=gc[1];obj=S.getCurrent();if(obj==null){return}S.applyOptions(obj.options||{});filterGallery();if(S.gallery.length){obj=S.getCurrent();if(S.options.onOpen(obj)===false){return}open=true;S.skin.onOpen(obj,load)}};S.close=function(){if(!open){return}open=false;if(S.player){S.player.remove();S.player=null}if(typeof slideTimer=="number"){clearTimeout(slideTimer);slideTimer=null}slideDelay=0;listenKeys(false);S.options.onClose(S.getCurrent());S.skin.onClose();S.revertOptions()};S.play=function(){if(!S.hasNext()){return}if(!slideDelay){slideDelay=S.options.slideshowDelay*1000}if(slideDelay){slideStart=now();slideTimer=setTimeout(function(){slideDelay=slideStart=0;S.next()},slideDelay);if(S.skin.onPlay){S.skin.onPlay()}}};S.pause=function(){if(typeof slideTimer!="number"){return}slideDelay=Math.max(0,slideDelay-(now()-slideStart));if(slideDelay){clearTimeout(slideTimer);slideTimer="pause";if(S.skin.onPause){S.skin.onPause()}}};S.change=function(index){if(!(index in S.gallery)){if(S.options.continuous){index=(index<0?S.gallery.length+index:0);if(!(index in S.gallery)){return}}else{return}}S.current=index;if(typeof slideTimer=="number"){clearTimeout(slideTimer);slideTimer=null;slideDelay=slideStart=0}S.options.onChange(S.getCurrent());load(true)};S.next=function(){S.change(S.current+1)};S.previous=function(){S.change(S.current-1)};S.setDimensions=function(height,width,maxHeight,maxWidth,topBottom,leftRight,padding,preserveAspect){var originalHeight=height,originalWidth=width;var extraHeight=2*padding+topBottom;if(height+extraHeight>maxHeight){height=maxHeight-extraHeight}var extraWidth=2*padding+leftRight;if(width+extraWidth>maxWidth){width=maxWidth-extraWidth}var changeHeight=(originalHeight-height)/originalHeight,changeWidth=(originalWidth-width)/originalWidth,oversized=(changeHeight>0||changeWidth>0);if(preserveAspect&&oversized){if(changeHeight>changeWidth){width=Math.round((originalWidth/originalHeight)*height)}else{if(changeWidth>changeHeight){height=Math.round((originalHeight/originalWidth)*width)}}}S.dimensions={height:height+topBottom,width:width+leftRight,innerHeight:height,innerWidth:width,top:Math.floor((maxHeight-(height+extraHeight))/2+padding),left:Math.floor((maxWidth-(width+extraWidth))/2+padding),oversized:oversized};return S.dimensions};S.makeGallery=function(obj){var gallery=[],current=-1;if(typeof obj=="string"){obj=[obj]}if(typeof obj.length=="number"){each(obj,function(i,o){if(o.content){gallery[i]=o}else{gallery[i]={content:o}}});current=0}else{if(obj.tagName){var cacheObj=S.getCache(obj);obj=cacheObj?cacheObj:S.makeObject(obj)}if(obj.gallery){gallery=[];var o;for(var key in S.cache){o=S.cache[key];if(o.gallery&&o.gallery==obj.gallery){if(current==-1&&o.content==obj.content){current=gallery.length}gallery.push(o)}}if(current==-1){gallery.unshift(obj);current=0}}else{gallery=[obj];current=0}}each(gallery,function(i,o){gallery[i]=apply({},o)});return[gallery,current]};S.makeObject=function(link,options){var obj={content:link.href,title:link.getAttribute("title")||"",link:link};if(options){options=apply({},options);each(["player","title","height","width","gallery"],function(i,o){if(typeof options[o]!="undefined"){obj[o]=options[o];delete options[o]}});obj.options=options}else{obj.options={}}if(!obj.player){obj.player=S.getPlayer(obj.content)}var rel=link.getAttribute("rel");if(rel){var match=rel.match(galleryName);if(match){obj.gallery=escape(match[2])}each(rel.split(";"),function(i,p){match=p.match(inlineParam);if(match){obj[match[1]]=match[2]}})}return obj};S.getPlayer=function(content){if(content.indexOf("#")>-1&&content.indexOf(document.location.href)==0){return"inline"}var q=content.indexOf("?");if(q>-1){content=content.substring(0,q)}var ext,m=content.match(fileExtension);if(m){ext=m[0].toLowerCase()}if(ext){if(S.img&&S.img.ext.indexOf(ext)>-1){return"img"}if(S.swf&&S.swf.ext.indexOf(ext)>-1){return"swf"}if(S.flv&&S.flv.ext.indexOf(ext)>-1){return"flv"}if(S.qt&&S.qt.ext.indexOf(ext)>-1){if(S.wmp&&S.wmp.ext.indexOf(ext)>-1){return"qtwmp"}else{return"qt"}}if(S.wmp&&S.wmp.ext.indexOf(ext)>-1){return"wmp"}}return"iframe"};function filterGallery(){var err=S.errorInfo,plugins=S.plugins,obj,remove,needed,m,format,replace,inlineEl,flashVersion;for(var i=0;i<S.gallery.length;++i){obj=S.gallery[i];remove=false;needed=null;switch(obj.player){case"flv":case"swf":if(!plugins.fla){needed="fla"}break;case"qt":if(!plugins.qt){needed="qt"}break;case"wmp":if(S.isMac){if(plugins.qt&&plugins.f4m){obj.player="qt"}else{needed="qtf4m"}}else{if(!plugins.wmp){needed="wmp"}}break;case"qtwmp":if(plugins.qt){obj.player="qt"}else{if(plugins.wmp){obj.player="wmp"}else{needed="qtwmp"}}break}if(needed){if(S.options.handleUnsupported=="link"){switch(needed){case"qtf4m":format="shared";replace=[err.qt.url,err.qt.name,err.f4m.url,err.f4m.name];break;case"qtwmp":format="either";replace=[err.qt.url,err.qt.name,err.wmp.url,err.wmp.name];break;default:format="single";replace=[err[needed].url,err[needed].name]}obj.player="html";obj.content='<div class="sb-message">'+sprintf(S.lang.errors[format],replace)+"</div>"}else{remove=true}}else{if(obj.player=="inline"){m=inlineId.exec(obj.content);if(m){inlineEl=get(m[1]);if(inlineEl){obj.content=inlineEl.innerHTML}else{remove=true}}else{remove=true}}else{if(obj.player=="swf"||obj.player=="flv"){flashVersion=(obj.options&&obj.options.flashVersion)||S.options.flashVersion;if(S.flash&&!S.flash.hasFlashPlayerVersion(flashVersion)){obj.width=310;obj.height=177}}}}if(remove){S.gallery.splice(i,1);if(i<S.current){--S.current}else{if(i==S.current){S.current=i>0?i-1:i}}--i}}}function listenKeys(on){if(!S.options.enableKeys){return}(on?addEvent:removeEvent)(document,"keydown",handleKey)}function handleKey(e){if(e.metaKey||e.shiftKey||e.altKey||e.ctrlKey){return}var code=keyCode(e),handler;switch(code){case 81:case 88:case 27:handler=S.close;break;case 37:handler=S.previous;break;case 39:handler=S.next;break;case 32:handler=typeof slideTimer=="number"?S.pause:S.play;break}if(handler){preventDefault(e);handler()}}function load(changing){listenKeys(false);var obj=S.getCurrent();var player=(obj.player=="inline"?"html":obj.player);if(typeof S[player]!="function"){throw"unknown player "+player}if(changing){S.player.remove();S.revertOptions();S.applyOptions(obj.options||{})}S.player=new S[player](obj,S.playerId);if(S.gallery.length>1){var next=S.gallery[S.current+1]||S.gallery[0];if(next.player=="img"){var a=new Image();a.src=next.content}var prev=S.gallery[S.current-1]||S.gallery[S.gallery.length-1];if(prev.player=="img"){var b=new Image();b.src=prev.content}}S.skin.onLoad(changing,waitReady)}function waitReady(){if(!open){return}if(typeof S.player.ready!="undefined"){var timer=setInterval(function(){if(open){if(S.player.ready){clearInterval(timer);timer=null;S.skin.onReady(show)}}else{clearInterval(timer);timer=null}},10)}else{S.skin.onReady(show)}}function show(){if(!open){return}S.player.append(S.skin.body,S.dimensions);S.skin.onShow(finish)}function finish(){if(!open){return}if(S.player.onLoad){S.player.onLoad()}S.options.onFinish(S.getCurrent());if(!S.isPaused()){S.play()}listenKeys(true)}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(obj,from){var len=this.length>>>0;from=from||0;if(from<0){from+=len}for(;from<len;++from){if(from in this&&this[from]===obj){return from}}return -1}}function now(){return(new Date).getTime()}function apply(original,extension){for(var property in extension){original[property]=extension[property]}return original}function each(obj,callback){var i=0,len=obj.length;for(var value=obj[0];i<len&&callback.call(value,i,value)!==false;value=obj[++i]){}}function sprintf(str,replace){return str.replace(/\{(\w+?)\}/g,function(match,i){return replace[i]})}function noop(){}function get(id){return document.getElementById(id)}function remove(el){el.parentNode.removeChild(el)}var supportsOpacity=true,supportsFixed=true;function checkSupport(){var body=document.body,div=document.createElement("div");supportsOpacity=typeof div.style.opacity==="string";div.style.position="fixed";div.style.margin=0;div.style.top="20px";body.appendChild(div,body.firstChild);supportsFixed=div.offsetTop==20;body.removeChild(div)}S.getStyle=(function(){var opacity=/opacity=([^)]*)/,getComputedStyle=document.defaultView&&document.defaultView.getComputedStyle;return function(el,style){var ret;if(!supportsOpacity&&style=="opacity"&&el.currentStyle){ret=opacity.test(el.currentStyle.filter||"")?(parseFloat(RegExp.$1)/100)+"":"";return ret===""?"1":ret}if(getComputedStyle){var computedStyle=getComputedStyle(el,null);if(computedStyle){ret=computedStyle[style]}if(style=="opacity"&&ret==""){ret="1"}}else{ret=el.currentStyle[style]}return ret}})();S.appendHTML=function(el,html){if(el.insertAdjacentHTML){el.insertAdjacentHTML("BeforeEnd",html)}else{if(el.lastChild){var range=el.ownerDocument.createRange();range.setStartAfter(el.lastChild);var frag=range.createContextualFragment(html);el.appendChild(frag)}else{el.innerHTML=html}}};S.getWindowSize=function(dimension){if(document.compatMode==="CSS1Compat"){return document.documentElement["client"+dimension]}return document.body["client"+dimension]};S.setOpacity=function(el,opacity){var style=el.style;if(supportsOpacity){style.opacity=(opacity==1?"":opacity)}else{style.zoom=1;if(opacity==1){if(typeof style.filter=="string"&&(/alpha/i).test(style.filter)){style.filter=style.filter.replace(/\s*[\w\.]*alpha\([^\)]*\);?/gi,"")}}else{style.filter=(style.filter||"").replace(/\s*[\w\.]*alpha\([^\)]*\)/gi,"")+" alpha(opacity="+(opacity*100)+")"}}};S.clearOpacity=function(el){S.setOpacity(el,1)};function getTarget(e){return e.target}function getPageXY(e){return[e.pageX,e.pageY]}function preventDefault(e){e.preventDefault()}function keyCode(e){return e.keyCode}function addEvent(el,type,handler){jQuery(el).bind(type,handler)}function removeEvent(el,type,handler){jQuery(el).unbind(type,handler)}jQuery.fn.shadowbox=function(options){return this.each(function(){var el=jQuery(this);var opts=jQuery.extend({},options||{},jQuery.metadata?el.metadata():jQuery.meta?el.data():{});var cls=this.className||"";opts.width=parseInt((cls.match(/w:(\d+)/)||[])[1])||opts.width;opts.height=parseInt((cls.match(/h:(\d+)/)||[])[1])||opts.height;Shadowbox.setup(el,opts)})};var loaded=false,DOMContentLoaded;if(document.addEventListener){DOMContentLoaded=function(){document.removeEventListener("DOMContentLoaded",DOMContentLoaded,false);S.load()}}else{if(document.attachEvent){DOMContentLoaded=function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",DOMContentLoaded);S.load()}}}}function doScrollCheck(){if(loaded){return}try{document.documentElement.doScroll("left")}catch(e){setTimeout(doScrollCheck,1);return}S.load()}function bindLoad(){if(document.readyState==="complete"){return S.load()}if(document.addEventListener){document.addEventListener("DOMContentLoaded",DOMContentLoaded,false);window.addEventListener("load",S.load,false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",DOMContentLoaded);window.attachEvent("onload",S.load);var topLevel=false;try{topLevel=window.frameElement===null}catch(e){}if(document.documentElement.doScroll&&topLevel){doScrollCheck()}}}}S.load=function(){if(loaded){return}if(!document.body){return setTimeout(S.load,13)}loaded=true;checkSupport();S.onReady();if(!S.options.skipSetup){S.setup()}S.skin.init()};S.plugins={};if(navigator.plugins&&navigator.plugins.length){var names=[];each(navigator.plugins,function(i,p){names.push(p.name)});names=names.join(",");var f4m=names.indexOf("Flip4Mac")>-1;S.plugins={fla:names.indexOf("Shockwave Flash")>-1,qt:names.indexOf("QuickTime")>-1,wmp:!f4m&&names.indexOf("Windows Media")>-1,f4m:f4m}}else{var detectPlugin=function(name){var axo;try{axo=new ActiveXObject(name)}catch(e){}return !!axo};S.plugins={fla:detectPlugin("ShockwaveFlash.ShockwaveFlash"),qt:detectPlugin("QuickTime.QuickTime"),wmp:detectPlugin("wmplayer.ocx"),f4m:false}}var relAttr=/^(light|shadow)box/i,expando="shadowboxCacheKey",cacheKey=1;S.cache={};S.select=function(selector){var links=[];if(!selector){var rel;each(document.getElementsByTagName("a"),function(i,el){rel=el.getAttribute("rel");if(rel&&relAttr.test(rel)){links.push(el)}})}else{var length=selector.length;if(length){if(typeof selector=="string"){if(S.find){links=S.find(selector)}}else{if(length==2&&typeof selector[0]=="string"&&selector[1].nodeType){if(S.find){links=S.find(selector[0],selector[1])}}else{for(var i=0;i<length;++i){links[i]=selector[i]}}}}else{links.push(selector)}}return links};S.setup=function(selector,options){each(S.select(selector),function(i,link){S.addCache(link,options)})};S.teardown=function(selector){each(S.select(selector),function(i,link){S.removeCache(link)})};S.addCache=function(link,options){var key=link[expando];if(key==undefined){key=cacheKey++;link[expando]=key;addEvent(link,"click",handleClick)}S.cache[key]=S.makeObject(link,options)};S.removeCache=function(link){removeEvent(link,"click",handleClick);delete S.cache[link[expando]];link[expando]=null};S.getCache=function(link){var key=link[expando];return(key in S.cache&&S.cache[key])};S.clearCache=function(){for(var key in S.cache){S.removeCache(S.cache[key].link)}S.cache={}};function handleClick(e){S.open(this);if(S.gallery.length){preventDefault(e)}}
/*
 * Sizzle CSS Selector Engine - v1.0
 *  Copyright 2009, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 *
 * Modified for inclusion in Shadowbox.js
 */
S.find=(function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;[0,0].sort(function(){baseHasDuplicate=false;return 0});var Sizzle=function(selector,context,results,seed){results=results||[];var origContext=context=context||document;if(context.nodeType!==1&&context.nodeType!==9){return[]}if(!selector||typeof selector!=="string"){return results}var parts=[],m,set,checkSet,extra,prune=true,contextXML=isXML(context),soFar=selector;while((chunker.exec(""),m=chunker.exec(soFar))!==null){soFar=m[3];parts.push(m[1]);if(m[2]){extra=m[3];break}}if(parts.length>1&&origPOS.exec(selector)){if(parts.length===2&&Expr.relative[parts[0]]){set=posProcess(parts[0]+parts[1],context)}else{set=Expr.relative[parts[0]]?[context]:Sizzle(parts.shift(),context);while(parts.length){selector=parts.shift();if(Expr.relative[selector]){selector+=parts.shift()}set=posProcess(selector,set)}}}else{if(!seed&&parts.length>1&&context.nodeType===9&&!contextXML&&Expr.match.ID.test(parts[0])&&!Expr.match.ID.test(parts[parts.length-1])){var ret=Sizzle.find(parts.shift(),context,contextXML);context=ret.expr?Sizzle.filter(ret.expr,ret.set)[0]:ret.set[0]}if(context){var ret=seed?{expr:parts.pop(),set:makeArray(seed)}:Sizzle.find(parts.pop(),parts.length===1&&(parts[0]==="~"||parts[0]==="+")&&context.parentNode?context.parentNode:context,contextXML);set=ret.expr?Sizzle.filter(ret.expr,ret.set):ret.set;if(parts.length>0){checkSet=makeArray(set)}else{prune=false}while(parts.length){var cur=parts.pop(),pop=cur;if(!Expr.relative[cur]){cur=""}else{pop=parts.pop()}if(pop==null){pop=context}Expr.relative[cur](checkSet,pop,contextXML)}}else{checkSet=parts=[]}}if(!checkSet){checkSet=set}if(!checkSet){throw"Syntax error, unrecognized expression: "+(cur||selector)}if(toString.call(checkSet)==="[object Array]"){if(!prune){results.push.apply(results,checkSet)}else{if(context&&context.nodeType===1){for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&(checkSet[i]===true||checkSet[i].nodeType===1&&contains(context,checkSet[i]))){results.push(set[i])}}}else{for(var i=0;checkSet[i]!=null;i++){if(checkSet[i]&&checkSet[i].nodeType===1){results.push(set[i])}}}}}else{makeArray(checkSet,results)}if(extra){Sizzle(extra,origContext,results,seed);Sizzle.uniqueSort(results)}return results};Sizzle.uniqueSort=function(results){if(sortOrder){hasDuplicate=baseHasDuplicate;results.sort(sortOrder);if(hasDuplicate){for(var i=1;i<results.length;i++){if(results[i]===results[i-1]){results.splice(i--,1)}}}}return results};Sizzle.matches=function(expr,set){return Sizzle(expr,null,null,set)};Sizzle.find=function(expr,context,isXML){var set,match;if(!expr){return[]}for(var i=0,l=Expr.order.length;i<l;i++){var type=Expr.order[i],match;if((match=Expr.leftMatch[type].exec(expr))){var left=match[1];match.splice(1,1);if(left.substr(left.length-1)!=="\\"){match[1]=(match[1]||"").replace(/\\/g,"");set=Expr.find[type](match,context,isXML);if(set!=null){expr=expr.replace(Expr.match[type],"");break}}}}if(!set){set=context.getElementsByTagName("*")}return{set:set,expr:expr}};Sizzle.filter=function(expr,set,inplace,not){var old=expr,result=[],curLoop=set,match,anyFound,isXMLFilter=set&&set[0]&&isXML(set[0]);while(expr&&set.length){for(var type in Expr.filter){if((match=Expr.match[type].exec(expr))!=null){var filter=Expr.filter[type],found,item;anyFound=false;if(curLoop===result){result=[]}if(Expr.preFilter[type]){match=Expr.preFilter[type](match,curLoop,inplace,result,not,isXMLFilter);if(!match){anyFound=found=true}else{if(match===true){continue}}}if(match){for(var i=0;(item=curLoop[i])!=null;i++){if(item){found=filter(item,match,i,curLoop);var pass=not^!!found;if(inplace&&found!=null){if(pass){anyFound=true}else{curLoop[i]=false}}else{if(pass){result.push(item);anyFound=true}}}}}if(found!==undefined){if(!inplace){curLoop=result}expr=expr.replace(Expr.match[type],"");if(!anyFound){return[]}break}}}if(expr===old){if(anyFound==null){throw"Syntax error, unrecognized expression: "+expr}else{break}}old=expr}return curLoop};var Expr=Sizzle.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\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(elem){return elem.getAttribute("href")}},relative:{"+":function(checkSet,part){var isPartStr=typeof part==="string",isTag=isPartStr&&!/\W/.test(part),isPartStrNotTag=isPartStr&&!isTag;if(isTag){part=part.toLowerCase()}for(var i=0,l=checkSet.length,elem;i<l;i++){if((elem=checkSet[i])){while((elem=elem.previousSibling)&&elem.nodeType!==1){}checkSet[i]=isPartStrNotTag||elem&&elem.nodeName.toLowerCase()===part?elem||false:elem===part}}if(isPartStrNotTag){Sizzle.filter(part,checkSet,true)}},">":function(checkSet,part){var isPartStr=typeof part==="string";if(isPartStr&&!/\W/.test(part)){part=part.toLowerCase();for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){var parent=elem.parentNode;checkSet[i]=parent.nodeName.toLowerCase()===part?parent:false}}}else{for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){checkSet[i]=isPartStr?elem.parentNode:elem.parentNode===part}}if(isPartStr){Sizzle.filter(part,checkSet,true)}}},"":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(typeof part==="string"&&!/\W/.test(part)){var nodeCheck=part=part.toLowerCase();checkFn=dirNodeCheck}checkFn("parentNode",part,doneName,checkSet,nodeCheck,isXML)},"~":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck;if(typeof part==="string"&&!/\W/.test(part)){var nodeCheck=part=part.toLowerCase();checkFn=dirNodeCheck}checkFn("previousSibling",part,doneName,checkSet,nodeCheck,isXML)}},find:{ID:function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?[m]:[]}},NAME:function(match,context){if(typeof context.getElementsByName!=="undefined"){var ret=[],results=context.getElementsByName(match[1]);for(var i=0,l=results.length;i<l;i++){if(results[i].getAttribute("name")===match[1]){ret.push(results[i])}}return ret.length===0?null:ret}},TAG:function(match,context){return context.getElementsByTagName(match[1])}},preFilter:{CLASS:function(match,curLoop,inplace,result,not,isXML){match=" "+match[1].replace(/\\/g,"")+" ";if(isXML){return match}for(var i=0,elem;(elem=curLoop[i])!=null;i++){if(elem){if(not^(elem.className&&(" "+elem.className+" ").replace(/[\t\n]/g," ").indexOf(match)>=0)){if(!inplace){result.push(elem)}}else{if(inplace){curLoop[i]=false}}}}return false},ID:function(match){return match[1].replace(/\\/g,"")},TAG:function(match,curLoop){return match[1].toLowerCase()},CHILD:function(match){if(match[1]==="nth"){var test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(match[2]==="even"&&"2n"||match[2]==="odd"&&"2n+1"||!/\D/.test(match[2])&&"0n+"+match[2]||match[2]);match[2]=(test[1]+(test[2]||1))-0;match[3]=test[3]-0}match[0]=done++;return match},ATTR:function(match,curLoop,inplace,result,not,isXML){var name=match[1].replace(/\\/g,"");if(!isXML&&Expr.attrMap[name]){match[1]=Expr.attrMap[name]}if(match[2]==="~="){match[4]=" "+match[4]+" "}return match},PSEUDO:function(match,curLoop,inplace,result,not){if(match[1]==="not"){if((chunker.exec(match[3])||"").length>1||/^\w/.test(match[3])){match[3]=Sizzle(match[3],null,null,curLoop)}else{var ret=Sizzle.filter(match[3],curLoop,inplace,true^not);if(!inplace){result.push.apply(result,ret)}return false}}else{if(Expr.match.POS.test(match[0])||Expr.match.CHILD.test(match[0])){return true}}return match},POS:function(match){match.unshift(true);return match}},filters:{enabled:function(elem){return elem.disabled===false&&elem.type!=="hidden"},disabled:function(elem){return elem.disabled===true},checked:function(elem){return elem.checked===true},selected:function(elem){elem.parentNode.selectedIndex;return elem.selected===true},parent:function(elem){return !!elem.firstChild},empty:function(elem){return !elem.firstChild},has:function(elem,i,match){return !!Sizzle(match[3],elem).length},header:function(elem){return/h\d/i.test(elem.nodeName)},text:function(elem){return"text"===elem.type},radio:function(elem){return"radio"===elem.type},checkbox:function(elem){return"checkbox"===elem.type},file:function(elem){return"file"===elem.type},password:function(elem){return"password"===elem.type},submit:function(elem){return"submit"===elem.type},image:function(elem){return"image"===elem.type},reset:function(elem){return"reset"===elem.type},button:function(elem){return"button"===elem.type||elem.nodeName.toLowerCase()==="button"},input:function(elem){return/input|select|textarea|button/i.test(elem.nodeName)}},setFilters:{first:function(elem,i){return i===0},last:function(elem,i,match,array){return i===array.length-1},even:function(elem,i){return i%2===0},odd:function(elem,i){return i%2===1},lt:function(elem,i,match){return i<match[3]-0},gt:function(elem,i,match){return i>match[3]-0},nth:function(elem,i,match){return match[3]-0===i},eq:function(elem,i,match){return match[3]-0===i}},filter:{PSEUDO:function(elem,match,i,array){var name=match[1],filter=Expr.filters[name];if(filter){return filter(elem,i,match,array)}else{if(name==="contains"){return(elem.textContent||elem.innerText||getText([elem])||"").indexOf(match[3])>=0}else{if(name==="not"){var not=match[3];for(var i=0,l=not.length;i<l;i++){if(not[i]===elem){return false}}return true}else{throw"Syntax error, unrecognized expression: "+name}}}},CHILD:function(elem,match){var type=match[1],node=elem;switch(type){case"only":case"first":while((node=node.previousSibling)){if(node.nodeType===1){return false}}if(type==="first"){return true}node=elem;case"last":while((node=node.nextSibling)){if(node.nodeType===1){return false}}return true;case"nth":var first=match[2],last=match[3];if(first===1&&last===0){return true}var doneName=match[0],parent=elem.parentNode;if(parent&&(parent.sizcache!==doneName||!elem.nodeIndex)){var count=0;for(node=parent.firstChild;node;node=node.nextSibling){if(node.nodeType===1){node.nodeIndex=++count}}parent.sizcache=doneName}var diff=elem.nodeIndex-last;if(first===0){return diff===0}else{return(diff%first===0&&diff/first>=0)}}},ID:function(elem,match){return elem.nodeType===1&&elem.getAttribute("id")===match},TAG:function(elem,match){return(match==="*"&&elem.nodeType===1)||elem.nodeName.toLowerCase()===match},CLASS:function(elem,match){return(" "+(elem.className||elem.getAttribute("class"))+" ").indexOf(match)>-1},ATTR:function(elem,match){var name=match[1],result=Expr.attrHandle[name]?Expr.attrHandle[name](elem):elem[name]!=null?elem[name]:elem.getAttribute(name),value=result+"",type=match[2],check=match[4];return result==null?type==="!=":type==="="?value===check:type==="*="?value.indexOf(check)>=0:type==="~="?(" "+value+" ").indexOf(check)>=0:!check?value&&result!==false:type==="!="?value!==check:type==="^="?value.indexOf(check)===0:type==="$="?value.substr(value.length-check.length)===check:type==="|="?value===check||value.substr(0,check.length+1)===check+"-":false},POS:function(elem,match,i,array){var name=match[2],filter=Expr.setFilters[name];if(filter){return filter(elem,i,match,array)}}}};var origPOS=Expr.match.POS;for(var type in Expr.match){Expr.match[type]=new RegExp(Expr.match[type].source+/(?![^\[]*\])(?![^\(]*\))/.source);Expr.leftMatch[type]=new RegExp(/(^(?:.|\r|\n)*?)/.source+Expr.match[type].source)}var makeArray=function(array,results){array=Array.prototype.slice.call(array,0);if(results){results.push.apply(results,array);return results}return array};try{Array.prototype.slice.call(document.documentElement.childNodes,0)}catch(e){makeArray=function(array,results){var ret=results||[];if(toString.call(array)==="[object Array]"){Array.prototype.push.apply(ret,array)}else{if(typeof array.length==="number"){for(var i=0,l=array.length;i<l;i++){ret.push(array[i])}}else{for(var i=0;array[i];i++){ret.push(array[i])}}}return ret}}var sortOrder;if(document.documentElement.compareDocumentPosition){sortOrder=function(a,b){if(!a.compareDocumentPosition||!b.compareDocumentPosition){if(a==b){hasDuplicate=true}return a.compareDocumentPosition?-1:1}var ret=a.compareDocumentPosition(b)&4?-1:a===b?0:1;if(ret===0){hasDuplicate=true}return ret}}else{if("sourceIndex" in document.documentElement){sortOrder=function(a,b){if(!a.sourceIndex||!b.sourceIndex){if(a==b){hasDuplicate=true}return a.sourceIndex?-1:1}var ret=a.sourceIndex-b.sourceIndex;if(ret===0){hasDuplicate=true}return ret}}else{if(document.createRange){sortOrder=function(a,b){if(!a.ownerDocument||!b.ownerDocument){if(a==b){hasDuplicate=true}return a.ownerDocument?-1:1}var aRange=a.ownerDocument.createRange(),bRange=b.ownerDocument.createRange();aRange.setStart(a,0);aRange.setEnd(a,0);bRange.setStart(b,0);bRange.setEnd(b,0);var ret=aRange.compareBoundaryPoints(Range.START_TO_END,bRange);if(ret===0){hasDuplicate=true}return ret}}}}function getText(elems){var ret="",elem;for(var i=0;elems[i];i++){elem=elems[i];if(elem.nodeType===3||elem.nodeType===4){ret+=elem.nodeValue}else{if(elem.nodeType!==8){ret+=getText(elem.childNodes)}}}return ret}(function(){var form=document.createElement("div"),id="script"+(new Date).getTime();form.innerHTML="<a name='"+id+"'/>";var root=document.documentElement;root.insertBefore(form,root.firstChild);if(document.getElementById(id)){Expr.find.ID=function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?m.id===match[1]||typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id").nodeValue===match[1]?[m]:undefined:[]}};Expr.filter.ID=function(elem,match){var node=typeof elem.getAttributeNode!=="undefined"&&elem.getAttributeNode("id");return elem.nodeType===1&&node&&node.nodeValue===match}}root.removeChild(form);root=form=null})();(function(){var div=document.createElement("div");div.appendChild(document.createComment(""));if(div.getElementsByTagName("*").length>0){Expr.find.TAG=function(match,context){var results=context.getElementsByTagName(match[1]);if(match[1]==="*"){var tmp=[];for(var i=0;results[i];i++){if(results[i].nodeType===1){tmp.push(results[i])}}results=tmp}return results}}div.innerHTML="<a href='#'></a>";if(div.firstChild&&typeof div.firstChild.getAttribute!=="undefined"&&div.firstChild.getAttribute("href")!=="#"){Expr.attrHandle.href=function(elem){return elem.getAttribute("href",2)}}div=null})();if(document.querySelectorAll){(function(){var oldSizzle=Sizzle,div=document.createElement("div");div.innerHTML="<p class='TEST'></p>";if(div.querySelectorAll&&div.querySelectorAll(".TEST").length===0){return}Sizzle=function(query,context,extra,seed){context=context||document;if(!seed&&context.nodeType===9&&!isXML(context)){try{return makeArray(context.querySelectorAll(query),extra)}catch(e){}}return oldSizzle(query,context,extra,seed)};for(var prop in oldSizzle){Sizzle[prop]=oldSizzle[prop]}div=null})()}(function(){var div=document.createElement("div");div.innerHTML="<div class='test e'></div><div class='test'></div>";if(!div.getElementsByClassName||div.getElementsByClassName("e").length===0){return}div.lastChild.className="e";if(div.getElementsByClassName("e").length===1){return}Expr.order.splice(1,0,"CLASS");Expr.find.CLASS=function(match,context,isXML){if(typeof context.getElementsByClassName!=="undefined"&&!isXML){return context.getElementsByClassName(match[1])}};div=null})();function dirNodeCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break}if(elem.nodeType===1&&!isXML){elem.sizcache=doneName;elem.sizset=i}if(elem.nodeName.toLowerCase()===cur){match=elem;break}elem=elem[dir]}checkSet[i]=match}}}function dirCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break}if(elem.nodeType===1){if(!isXML){elem.sizcache=doneName;elem.sizset=i}if(typeof cur!=="string"){if(elem===cur){match=true;break}}else{if(Sizzle.filter(cur,[elem]).length>0){match=elem;break}}}elem=elem[dir]}checkSet[i]=match}}}var contains=document.compareDocumentPosition?function(a,b){return a.compareDocumentPosition(b)&16}:function(a,b){return a!==b&&(a.contains?a.contains(b):true)};var isXML=function(elem){var documentElement=(elem?elem.ownerDocument||elem:0).documentElement;return documentElement?documentElement.nodeName!=="HTML":false};var posProcess=function(selector,context){var tmpSet=[],later="",match,root=context.nodeType?[context]:context;while((match=Expr.match.PSEUDO.exec(selector))){later+=match[0];selector=selector.replace(Expr.match.PSEUDO,"")}selector=Expr.relative[selector]?selector+"*":selector;for(var i=0,l=root.length;i<l;i++){Sizzle(selector,root[i],tmpSet)}return Sizzle.filter(later,tmpSet)};return Sizzle})();
/*
 * SWFObject v2.1 <http://code.google.com/p/swfobject/>
 * Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis
 * This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
 *
 * Modified for inclusion in Shadowbox.js
 */
S.flash=(function(){var swfobject=function(){var UNDEF="undefined",OBJECT="object",SHOCKWAVE_FLASH="Shockwave Flash",SHOCKWAVE_FLASH_AX="ShockwaveFlash.ShockwaveFlash",FLASH_MIME_TYPE="application/x-shockwave-flash",EXPRESS_INSTALL_ID="SWFObjectExprInst",win=window,doc=document,nav=navigator,domLoadFnArr=[],regObjArr=[],objIdArr=[],listenersArr=[],script,timer=null,storedAltContent=null,storedAltContentId=null,isDomLoaded=false,isExpressInstallActive=false;var ua=function(){var w3cdom=typeof doc.getElementById!=UNDEF&&typeof doc.getElementsByTagName!=UNDEF&&typeof doc.createElement!=UNDEF,playerVersion=[0,0,0],d=null;if(typeof nav.plugins!=UNDEF&&typeof nav.plugins[SHOCKWAVE_FLASH]==OBJECT){d=nav.plugins[SHOCKWAVE_FLASH].description;if(d&&!(typeof nav.mimeTypes!=UNDEF&&nav.mimeTypes[FLASH_MIME_TYPE]&&!nav.mimeTypes[FLASH_MIME_TYPE].enabledPlugin)){d=d.replace(/^.*\s+(\S+\s+\S+$)/,"$1");playerVersion[0]=parseInt(d.replace(/^(.*)\..*$/,"$1"),10);playerVersion[1]=parseInt(d.replace(/^.*\.(.*)\s.*$/,"$1"),10);playerVersion[2]=/r/.test(d)?parseInt(d.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof win.ActiveXObject!=UNDEF){var a=null,fp6Crash=false;try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".7")}catch(e){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX+".6");playerVersion=[6,0,21];a.AllowScriptAccess="always"}catch(e){if(playerVersion[0]==6){fp6Crash=true}}if(!fp6Crash){try{a=new ActiveXObject(SHOCKWAVE_FLASH_AX)}catch(e){}}}if(!fp6Crash&&a){try{d=a.GetVariable("$version");if(d){d=d.split(" ")[1].split(",");playerVersion=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10)]}}catch(e){}}}}var u=nav.userAgent.toLowerCase(),p=nav.platform.toLowerCase(),webkit=/webkit/.test(u)?parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,ie=false,windows=p?/win/.test(p):/win/.test(u),mac=p?/mac/.test(p):/mac/.test(u);
/*@cc_on
			ie = true;
			@if (@_win32)
				windows = true;
			@elif (@_mac)
				mac = true;
			@end
		@*/
return{w3cdom:w3cdom,pv:playerVersion,webkit:webkit,ie:ie,win:windows,mac:mac}}();var onDomLoad=function(){if(!ua.w3cdom){return}addDomLoadEvent(main);if(ua.ie&&ua.win){try{doc.write("<script id=__ie_ondomload defer=true src=//:><\/script>");script=getElementById("__ie_ondomload");if(script){addListener(script,"onreadystatechange",checkReadyState)}}catch(e){}}if(ua.webkit&&typeof doc.readyState!=UNDEF){timer=setInterval(function(){if(/loaded|complete/.test(doc.readyState)){callDomLoadFunctions()}},10)}if(typeof doc.addEventListener!=UNDEF){doc.addEventListener("DOMContentLoaded",callDomLoadFunctions,null)}addLoadEvent(callDomLoadFunctions)}();function checkReadyState(){if(script.readyState=="complete"){script.parentNode.removeChild(script);callDomLoadFunctions()}}function callDomLoadFunctions(){if(isDomLoaded){return}if(ua.ie&&ua.win){var s=createElement("span");try{var t=doc.getElementsByTagName("body")[0].appendChild(s);t.parentNode.removeChild(t)}catch(e){return}}isDomLoaded=true;if(timer){clearInterval(timer);timer=null}var dl=domLoadFnArr.length;for(var i=0;i<dl;i++){domLoadFnArr[i]()}}function addDomLoadEvent(fn){if(isDomLoaded){fn()}else{domLoadFnArr[domLoadFnArr.length]=fn}}function addLoadEvent(fn){if(typeof win.addEventListener!=UNDEF){win.addEventListener("load",fn,false)}else{if(typeof doc.addEventListener!=UNDEF){doc.addEventListener("load",fn,false)}else{if(typeof win.attachEvent!=UNDEF){addListener(win,"onload",fn)}else{if(typeof win.onload=="function"){var fnOld=win.onload;win.onload=function(){fnOld();fn()}}else{win.onload=fn}}}}}function main(){var rl=regObjArr.length;for(var i=0;i<rl;i++){var id=regObjArr[i].id;if(ua.pv[0]>0){var obj=getElementById(id);if(obj){regObjArr[i].width=obj.getAttribute("width")?obj.getAttribute("width"):"0";regObjArr[i].height=obj.getAttribute("height")?obj.getAttribute("height"):"0";if(hasPlayerVersion(regObjArr[i].swfVersion)){if(ua.webkit&&ua.webkit<312){fixParams(obj)}setVisibility(id,true)}else{if(regObjArr[i].expressInstall&&!isExpressInstallActive&&hasPlayerVersion("6.0.65")&&(ua.win||ua.mac)){showExpressInstall(regObjArr[i])}else{displayAltContent(obj)}}}}else{setVisibility(id,true)}}}function fixParams(obj){var nestedObj=obj.getElementsByTagName(OBJECT)[0];if(nestedObj){var e=createElement("embed"),a=nestedObj.attributes;if(a){var al=a.length;for(var i=0;i<al;i++){if(a[i].nodeName=="DATA"){e.setAttribute("src",a[i].nodeValue)}else{e.setAttribute(a[i].nodeName,a[i].nodeValue)}}}var c=nestedObj.childNodes;if(c){var cl=c.length;for(var j=0;j<cl;j++){if(c[j].nodeType==1&&c[j].nodeName=="PARAM"){e.setAttribute(c[j].getAttribute("name"),c[j].getAttribute("value"))}}}obj.parentNode.replaceChild(e,obj)}}function showExpressInstall(regObj){isExpressInstallActive=true;var obj=getElementById(regObj.id);if(obj){if(regObj.altContentId){var ac=getElementById(regObj.altContentId);if(ac){storedAltContent=ac;storedAltContentId=regObj.altContentId}}else{storedAltContent=abstractAltContent(obj)}if(!(/%$/.test(regObj.width))&&parseInt(regObj.width,10)<310){regObj.width="310"}if(!(/%$/.test(regObj.height))&&parseInt(regObj.height,10)<137){regObj.height="137"}doc.title=doc.title.slice(0,47)+" - Flash Player Installation";var pt=ua.ie&&ua.win?"ActiveX":"PlugIn",dt=doc.title,fv="MMredirectURL="+win.location+"&MMplayerType="+pt+"&MMdoctitle="+dt,replaceId=regObj.id;if(ua.ie&&ua.win&&obj.readyState!=4){var newObj=createElement("div");replaceId+="SWFObjectNew";newObj.setAttribute("id",replaceId);obj.parentNode.insertBefore(newObj,obj);obj.style.display="none";var fn=function(){obj.parentNode.removeChild(obj)};addListener(win,"onload",fn)}createSWF({data:regObj.expressInstall,id:EXPRESS_INSTALL_ID,width:regObj.width,height:regObj.height},{flashvars:fv},replaceId)}}function displayAltContent(obj){if(ua.ie&&ua.win&&obj.readyState!=4){var el=createElement("div");obj.parentNode.insertBefore(el,obj);el.parentNode.replaceChild(abstractAltContent(obj),el);obj.style.display="none";var fn=function(){obj.parentNode.removeChild(obj)};addListener(win,"onload",fn)}else{obj.parentNode.replaceChild(abstractAltContent(obj),obj)}}function abstractAltContent(obj){var ac=createElement("div");if(ua.win&&ua.ie){ac.innerHTML=obj.innerHTML}else{var nestedObj=obj.getElementsByTagName(OBJECT)[0];if(nestedObj){var c=nestedObj.childNodes;if(c){var cl=c.length;for(var i=0;i<cl;i++){if(!(c[i].nodeType==1&&c[i].nodeName=="PARAM")&&!(c[i].nodeType==8)){ac.appendChild(c[i].cloneNode(true))}}}}}return ac}function createSWF(attObj,parObj,id){var r,el=getElementById(id);if(el){if(typeof attObj.id==UNDEF){attObj.id=id}if(ua.ie&&ua.win){var att="";for(var i in attObj){if(attObj[i]!=Object.prototype[i]){if(i.toLowerCase()=="data"){parObj.movie=attObj[i]}else{if(i.toLowerCase()=="styleclass"){att+=' class="'+attObj[i]+'"'}else{if(i.toLowerCase()!="classid"){att+=" "+i+'="'+attObj[i]+'"'}}}}}var par="";for(var j in parObj){if(parObj[j]!=Object.prototype[j]){par+='<param name="'+j+'" value="'+parObj[j]+'" />'}}el.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+att+">"+par+"</object>";objIdArr[objIdArr.length]=attObj.id;r=getElementById(attObj.id)}else{if(ua.webkit&&ua.webkit<312){var e=createElement("embed");e.setAttribute("type",FLASH_MIME_TYPE);for(var k in attObj){if(attObj[k]!=Object.prototype[k]){if(k.toLowerCase()=="data"){e.setAttribute("src",attObj[k])}else{if(k.toLowerCase()=="styleclass"){e.setAttribute("class",attObj[k])}else{if(k.toLowerCase()!="classid"){e.setAttribute(k,attObj[k])}}}}}for(var l in parObj){if(parObj[l]!=Object.prototype[l]){if(l.toLowerCase()!="movie"){e.setAttribute(l,parObj[l])}}}el.parentNode.replaceChild(e,el);r=e}else{var o=createElement(OBJECT);o.setAttribute("type",FLASH_MIME_TYPE);for(var m in attObj){if(attObj[m]!=Object.prototype[m]){if(m.toLowerCase()=="styleclass"){o.setAttribute("class",attObj[m])}else{if(m.toLowerCase()!="classid"){o.setAttribute(m,attObj[m])}}}}for(var n in parObj){if(parObj[n]!=Object.prototype[n]&&n.toLowerCase()!="movie"){createObjParam(o,n,parObj[n])}}el.parentNode.replaceChild(o,el);r=o}}}return r}function createObjParam(el,pName,pValue){var p=createElement("param");p.setAttribute("name",pName);p.setAttribute("value",pValue);el.appendChild(p)}function removeSWF(id){var obj=getElementById(id);if(obj&&(obj.nodeName=="OBJECT"||obj.nodeName=="EMBED")){if(ua.ie&&ua.win){if(obj.readyState==4){removeObjectInIE(id)}else{win.attachEvent("onload",function(){removeObjectInIE(id)})}}else{obj.parentNode.removeChild(obj)}}}function removeObjectInIE(id){var obj=getElementById(id);if(obj){for(var i in obj){if(typeof obj[i]=="function"){obj[i]=null}}obj.parentNode.removeChild(obj)}}function getElementById(id){var el=null;try{el=doc.getElementById(id)}catch(e){}return el}function createElement(el){return doc.createElement(el)}function addListener(target,eventType,fn){target.attachEvent(eventType,fn);listenersArr[listenersArr.length]=[target,eventType,fn]}function hasPlayerVersion(rv){var pv=ua.pv,v=rv.split(".");v[0]=parseInt(v[0],10);v[1]=parseInt(v[1],10)||0;v[2]=parseInt(v[2],10)||0;return(pv[0]>v[0]||(pv[0]==v[0]&&pv[1]>v[1])||(pv[0]==v[0]&&pv[1]==v[1]&&pv[2]>=v[2]))?true:false}function createCSS(sel,decl){if(ua.ie&&ua.mac){return}var h=doc.getElementsByTagName("head")[0],s=createElement("style");s.setAttribute("type","text/css");s.setAttribute("media","screen");if(!(ua.ie&&ua.win)&&typeof doc.createTextNode!=UNDEF){s.appendChild(doc.createTextNode(sel+" {"+decl+"}"))}h.appendChild(s);if(ua.ie&&ua.win&&typeof doc.styleSheets!=UNDEF&&doc.styleSheets.length>0){var ls=doc.styleSheets[doc.styleSheets.length-1];if(typeof ls.addRule==OBJECT){ls.addRule(sel,decl)}}}function setVisibility(id,isVisible){var v=isVisible?"visible":"hidden";if(isDomLoaded&&getElementById(id)){getElementById(id).style.visibility=v}else{createCSS("#"+id,"visibility:"+v)}}function urlEncodeIfNecessary(s){var regex=/[\\\"<>\.;]/;var hasBadChars=regex.exec(s)!=null;return hasBadChars?encodeURIComponent(s):s}var cleanup=function(){if(ua.ie&&ua.win){window.attachEvent("onunload",function(){var ll=listenersArr.length;for(var i=0;i<ll;i++){listenersArr[i][0].detachEvent(listenersArr[i][1],listenersArr[i][2])}var il=objIdArr.length;for(var j=0;j<il;j++){removeSWF(objIdArr[j])}for(var k in ua){ua[k]=null}ua=null;for(var l in swfobject){swfobject[l]=null}swfobject=null})}}();return{registerObject:function(objectIdStr,swfVersionStr,xiSwfUrlStr){if(!ua.w3cdom||!objectIdStr||!swfVersionStr){return}var regObj={};regObj.id=objectIdStr;regObj.swfVersion=swfVersionStr;regObj.expressInstall=xiSwfUrlStr?xiSwfUrlStr:false;regObjArr[regObjArr.length]=regObj;setVisibility(objectIdStr,false)},getObjectById:function(objectIdStr){var r=null;if(ua.w3cdom){var o=getElementById(objectIdStr);if(o){var n=o.getElementsByTagName(OBJECT)[0];if(!n||(n&&typeof o.SetVariable!=UNDEF)){r=o}else{if(typeof n.SetVariable!=UNDEF){r=n}}}}return r},embedSWF:function(swfUrlStr,replaceElemIdStr,widthStr,heightStr,swfVersionStr,xiSwfUrlStr,flashvarsObj,parObj,attObj){if(!ua.w3cdom||!swfUrlStr||!replaceElemIdStr||!widthStr||!heightStr||!swfVersionStr){return}widthStr+="";heightStr+="";if(hasPlayerVersion(swfVersionStr)){setVisibility(replaceElemIdStr,false);var att={};if(attObj&&typeof attObj===OBJECT){for(var i in attObj){if(attObj[i]!=Object.prototype[i]){att[i]=attObj[i]}}}att.data=swfUrlStr;att.width=widthStr;att.height=heightStr;var par={};if(parObj&&typeof parObj===OBJECT){for(var j in parObj){if(parObj[j]!=Object.prototype[j]){par[j]=parObj[j]}}}if(flashvarsObj&&typeof flashvarsObj===OBJECT){for(var k in flashvarsObj){if(flashvarsObj[k]!=Object.prototype[k]){if(typeof par.flashvars!=UNDEF){par.flashvars+="&"+k+"="+flashvarsObj[k]}else{par.flashvars=k+"="+flashvarsObj[k]}}}}addDomLoadEvent(function(){createSWF(att,par,replaceElemIdStr);if(att.id==replaceElemIdStr){setVisibility(replaceElemIdStr,true)}})}else{if(xiSwfUrlStr&&!isExpressInstallActive&&hasPlayerVersion("6.0.65")&&(ua.win||ua.mac)){isExpressInstallActive=true;setVisibility(replaceElemIdStr,false);addDomLoadEvent(function(){var regObj={};regObj.id=regObj.altContentId=replaceElemIdStr;regObj.width=widthStr;regObj.height=heightStr;regObj.expressInstall=xiSwfUrlStr;showExpressInstall(regObj)})}}},getFlashPlayerVersion:function(){return{major:ua.pv[0],minor:ua.pv[1],release:ua.pv[2]}},hasFlashPlayerVersion:hasPlayerVersion,createSWF:function(attObj,parObj,replaceElemIdStr){if(ua.w3cdom){return createSWF(attObj,parObj,replaceElemIdStr)}else{return undefined}},removeSWF:function(objElemIdStr){if(ua.w3cdom){removeSWF(objElemIdStr)}},createCSS:function(sel,decl){if(ua.w3cdom){createCSS(sel,decl)}},addDomLoadEvent:addDomLoadEvent,addLoadEvent:addLoadEvent,getQueryParamValue:function(param){var q=doc.location.search||doc.location.hash;if(param==null){return urlEncodeIfNecessary(q)}if(q){var pairs=q.substring(1).split("&");for(var i=0;i<pairs.length;i++){if(pairs[i].substring(0,pairs[i].indexOf("="))==param){return urlEncodeIfNecessary(pairs[i].substring((pairs[i].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(isExpressInstallActive&&storedAltContent){var obj=getElementById(EXPRESS_INSTALL_ID);if(obj){obj.parentNode.replaceChild(storedAltContent,obj);if(storedAltContentId){setVisibility(storedAltContentId,true);if(ua.ie&&ua.win){storedAltContent.style.display="block"}}storedAltContent=null;storedAltContentId=null;isExpressInstallActive=false}}}}}();return swfobject})();S.lang={code:"en",of:"of",loading:"loading",cancel:"Cancel",next:"Next",previous:"Previous",play:"Play",pause:"Pause",close:"Close",errors:{single:'You must install the <a href="{0}">{1}</a> browser plugin to view this content.',shared:'You must install both the <a href="{0}">{1}</a> and <a href="{2}">{3}</a> browser plugins to view this content.',either:'You must install either the <a href="{0}">{1}</a> or the <a href="{2}">{3}</a> browser plugin to view this content.'}};var pre,proxyId="sb-drag-proxy",dragData,dragProxy,dragTarget;function resetDrag(){dragData={x:0,y:0,startX:null,startY:null}}function updateProxy(){var dims=S.dimensions;apply(dragProxy.style,{height:dims.innerHeight+"px",width:dims.innerWidth+"px"})}function enableDrag(){resetDrag();var style=["position:absolute","cursor:"+(S.isGecko?"-moz-grab":"move"),"background-color:"+(S.isIE?"#fff;filter:alpha(opacity=0)":"transparent")].join(";");S.appendHTML(S.skin.body,'<div id="'+proxyId+'" style="'+style+'"></div>');dragProxy=get(proxyId);updateProxy();addEvent(dragProxy,"mousedown",startDrag)}function disableDrag(){if(dragProxy){removeEvent(dragProxy,"mousedown",startDrag);remove(dragProxy);dragProxy=null}dragTarget=null}function startDrag(e){preventDefault(e);var xy=getPageXY(e);dragData.startX=xy[0];dragData.startY=xy[1];dragTarget=get(S.player.id);addEvent(document,"mousemove",positionDrag);addEvent(document,"mouseup",endDrag);if(S.isGecko){dragProxy.style.cursor="-moz-grabbing"}}function positionDrag(e){var player=S.player,dims=S.dimensions,xy=getPageXY(e);var moveX=xy[0]-dragData.startX;dragData.startX+=moveX;dragData.x=Math.max(Math.min(0,dragData.x+moveX),dims.innerWidth-player.width);var moveY=xy[1]-dragData.startY;dragData.startY+=moveY;dragData.y=Math.max(Math.min(0,dragData.y+moveY),dims.innerHeight-player.height);apply(dragTarget.style,{left:dragData.x+"px",top:dragData.y+"px"})}function endDrag(){removeEvent(document,"mousemove",positionDrag);removeEvent(document,"mouseup",endDrag);if(S.isGecko){dragProxy.style.cursor="-moz-grab"}}S.img=function(obj,id){this.obj=obj;this.id=id;this.ready=false;var self=this;pre=new Image();pre.onload=function(){self.height=obj.height?parseInt(obj.height,10):pre.height;self.width=obj.width?parseInt(obj.width,10):pre.width;self.ready=true;pre.onload=null;pre=null};pre.src=obj.content};S.img.ext=["bmp","gif","jpg","jpeg","png"];S.img.prototype={append:function(body,dims){var img=document.createElement("img");img.id=this.id;img.src=this.obj.content;img.style.position="absolute";var height,width;if(dims.oversized&&S.options.handleOversize=="resize"){height=dims.innerHeight;width=dims.innerWidth}else{height=this.height;width=this.width}img.setAttribute("height",height);img.setAttribute("width",width);body.appendChild(img)},remove:function(){var el=get(this.id);if(el){remove(el)}disableDrag();if(pre){pre.onload=null;pre=null}},onLoad:function(){var dims=S.dimensions;if(dims.oversized&&S.options.handleOversize=="drag"){enableDrag()}},onWindowResize:function(){var dims=S.dimensions;switch(S.options.handleOversize){case"resize":var el=get(this.id);el.height=dims.innerHeight;el.width=dims.innerWidth;break;case"drag":if(dragTarget){var top=parseInt(S.getStyle(dragTarget,"top")),left=parseInt(S.getStyle(dragTarget,"left"));if(top+this.height<dims.innerHeight){dragTarget.style.top=dims.innerHeight-this.height+"px"}if(left+this.width<dims.innerWidth){dragTarget.style.left=dims.innerWidth-this.width+"px"}updateProxy()}break}}};S.iframe=function(obj,id){this.obj=obj;this.id=id;var overlay=get("sb-overlay");this.height=obj.height?parseInt(obj.height,10):overlay.offsetHeight;this.width=obj.width?parseInt(obj.width,10):overlay.offsetWidth};S.iframe.prototype={append:function(body,dims){var html='<iframe id="'+this.id+'" name="'+this.id+'" height="100%" width="100%" frameborder="0" marginwidth="0" marginheight="0" style="visibility:hidden" onload="this.style.visibility=\'visible\'" scrolling="no"';if(S.isIE){html+=' allowtransparency="true"';if(S.isIE6){html+=" src=\"javascript:false;document.write('');\""}}html+="></iframe>";body.innerHTML=html},remove:function(){var el=get(this.id);if(el){remove(el);if(S.isGecko){delete window.frames[this.id]}}},onLoad:function(){var win=S.isIE?get(this.id).contentWindow:window.frames[this.id];win.location.href=this.obj.content}};S.html=function(obj,id){this.obj=obj;this.id=id;this.height=obj.height?parseInt(obj.height,10):300;this.width=obj.width?parseInt(obj.width,10):500};S.html.prototype={append:function(body,dims){var div=document.createElement("div");div.id=this.id;div.className="html";div.innerHTML=this.obj.content;body.appendChild(div)},remove:function(){var el=get(this.id);if(el){remove(el)}}};S.swf=function(obj,id){this.obj=obj;this.id=id;this.height=obj.height?parseInt(obj.height,10):300;this.width=obj.width?parseInt(obj.width,10):300};S.swf.ext=["swf"];S.swf.prototype={append:function(body,dims){var tmp=document.createElement("div");tmp.id=this.id;body.appendChild(tmp);var height=dims.innerHeight,width=dims.innerWidth,swf=this.obj.content,version=S.options.flashVersion,express=S.path+"expressInstall.swf",flashvars=S.options.flashVars,params=S.options.flashParams;S.flash.embedSWF(swf,this.id,width,height,version,express,flashvars,params)},remove:function(){S.flash.expressInstallCallback();S.flash.removeSWF(this.id)},onWindowResize:function(){var dims=S.dimensions,el=get(this.id);el.height=dims.innerHeight;el.width=dims.innerWidth}};var jwControllerHeight=20;S.flv=function(obj,id){this.obj=obj;this.id=id;this.height=obj.height?parseInt(obj.height,10):300;if(S.options.showMovieControls){this.height+=jwControllerHeight}this.width=obj.width?parseInt(obj.width,10):300};S.flv.ext=["flv","m4v"];S.flv.prototype={append:function(body,dims){var tmp=document.createElement("div");tmp.id=this.id;body.appendChild(tmp);var height=dims.innerHeight,width=dims.innerWidth,swf=S.path+"player.swf",version=S.options.flashVersion,express=S.path+"expressInstall.swf",flashvars=apply({file:this.obj.content,height:height,width:width,autostart:(S.options.autoplayMovies?"true":"false"),controlbar:(S.options.showMovieControls?"bottom":"none"),backcolor:"0x000000",frontcolor:"0xCCCCCC",lightcolor:"0x557722"},S.options.flashVars),params=S.options.flashParams;S.flash.embedSWF(swf,this.id,width,height,version,express,flashvars,params)},remove:function(){S.flash.expressInstallCallback();S.flash.removeSWF(this.id)},onWindowResize:function(){var dims=S.dimensions,el=get(this.id);el.height=dims.innerHeight;el.width=dims.innerWidth}};var qtControllerHeight=16;S.qt=function(obj,id){this.obj=obj;this.id=id;this.height=obj.height?parseInt(obj.height,10):300;if(S.options.showMovieControls){this.height+=qtControllerHeight}this.width=obj.width?parseInt(obj.width,10):300};S.qt.ext=["dv","mov","moov","movie","mp4","avi","mpg","mpeg"];S.qt.prototype={append:function(body,dims){var opt=S.options,autoplay=String(opt.autoplayMovies),controls=String(opt.showMovieControls);var html="<object",movie={id:this.id,name:this.id,height:this.height,width:this.width,kioskmode:"true"};if(S.isIE){movie.classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B";movie.codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0"}else{movie.type="video/quicktime";movie.data=this.obj.content}for(var m in movie){html+=" "+m+'="'+movie[m]+'"'}html+=">";var params={src:this.obj.content,scale:"aspect",controller:controls,autoplay:autoplay};for(var p in params){html+='<param name="'+p+'" value="'+params[p]+'">'}html+="</object>";body.innerHTML=html},remove:function(){try{document[this.id].Stop()}catch(e){}var el=get(this.id);if(el){remove(el)}}};var overlayOn=false,visibilityCache=[],pngIds=["sb-nav-close","sb-nav-next","sb-nav-play","sb-nav-pause","sb-nav-previous"],container,overlay,wrapper,doWindowResize=true;function animate(el,property,to,duration,callback){var isOpacity=(property=="opacity"),anim=isOpacity?S.setOpacity:function(el,value){el.style[property]=""+value+"px"};if(duration==0||(!isOpacity&&!S.options.animate)||(isOpacity&&!S.options.animateFade)){anim(el,to);if(callback){callback()}return}var from=parseFloat(S.getStyle(el,property))||0;var delta=to-from;if(delta==0){if(callback){callback()}return}duration*=1000;var begin=now(),ease=S.ease,end=begin+duration,time;var interval=setInterval(function(){time=now();if(time>=end){clearInterval(interval);interval=null;anim(el,to);if(callback){callback()}}else{anim(el,from+ease((time-begin)/duration)*delta)}},10)}function setSize(){container.style.height=S.getWindowSize("Height")+"px";container.style.width=S.getWindowSize("Width")+"px"}function setPosition(){container.style.top=document.documentElement.scrollTop+"px";container.style.left=document.documentElement.scrollLeft+"px"}function toggleTroubleElements(on){if(on){each(visibilityCache,function(i,el){el[0].style.visibility=el[1]||""})}else{visibilityCache=[];each(S.options.troubleElements,function(i,tag){each(document.getElementsByTagName(tag),function(j,el){visibilityCache.push([el,el.style.visibility]);el.style.visibility="hidden"})})}}function toggleNav(id,on){var el=get("sb-nav-"+id);if(el){el.style.display=on?"":"none"}}function toggleLoading(on,callback){var loading=get("sb-loading"),playerName=S.getCurrent().player,anim=(playerName=="img"||playerName=="html");if(on){S.setOpacity(loading,0);loading.style.display="block";var wrapped=function(){S.clearOpacity(loading);if(callback){callback()}};if(anim){animate(loading,"opacity",1,S.options.fadeDuration,wrapped)}else{wrapped()}}else{var wrapped=function(){loading.style.display="none";S.clearOpacity(loading);if(callback){callback()}};if(anim){animate(loading,"opacity",0,S.options.fadeDuration,wrapped)}else{wrapped()}}}function buildBars(callback){var obj=S.getCurrent();get("sb-title-inner").innerHTML=obj.title||"";var close,next,play,pause,previous;if(S.options.displayNav){close=true;var len=S.gallery.length;if(len>1){if(S.options.continuous){next=previous=true}else{next=(len-1)>S.current;previous=S.current>0}}if(S.options.slideshowDelay>0&&S.hasNext()){pause=!S.isPaused();play=!pause}}else{close=next=play=pause=previous=false}toggleNav("close",close);toggleNav("next",next);toggleNav("play",play);toggleNav("pause",pause);toggleNav("previous",previous);var counter="";if(S.options.displayCounter&&S.gallery.length>1){var len=S.gallery.length;if(S.options.counterType=="skip"){var i=0,end=len,limit=parseInt(S.options.counterLimit)||0;if(limit<len&&limit>2){var h=Math.floor(limit/2);i=S.current-h;if(i<0){i+=len}end=S.current+(limit-h);if(end>len){end-=len}}while(i!=end){if(i==len){i=0}counter+='<a onclick="Shadowbox.change('+i+');"';if(i==S.current){counter+=' class="sb-counter-current"'}counter+=">"+(++i)+"</a>"}}else{counter=[S.current+1,S.lang.of,len].join(" ")}}get("sb-counter").innerHTML=counter;callback()}function showBars(callback){var titleInner=get("sb-title-inner"),infoInner=get("sb-info-inner"),duration=0.35;titleInner.style.visibility=infoInner.style.visibility="";if(titleInner.innerHTML!=""){animate(titleInner,"marginTop",0,duration)}animate(infoInner,"marginTop",0,duration,callback)}function hideBars(anim,callback){var title=get("sb-title"),info=get("sb-info"),titleHeight=title.offsetHeight,infoHeight=info.offsetHeight,titleInner=get("sb-title-inner"),infoInner=get("sb-info-inner"),duration=(anim?0.35:0);animate(titleInner,"marginTop",titleHeight,duration);animate(infoInner,"marginTop",infoHeight*-1,duration,function(){titleInner.style.visibility=infoInner.style.visibility="hidden";callback()})}function adjustHeight(height,top,anim,callback){var wrapperInner=get("sb-wrapper-inner"),duration=(anim?S.options.resizeDuration:0);animate(wrapper,"top",top,duration);animate(wrapperInner,"height",height,duration,callback)}function adjustWidth(width,left,anim,callback){var duration=(anim?S.options.resizeDuration:0);animate(wrapper,"left",left,duration);animate(wrapper,"width",width,duration,callback)}function setDimensions(height,width){var bodyInner=get("sb-body-inner"),height=parseInt(height),width=parseInt(width),topBottom=wrapper.offsetHeight-bodyInner.offsetHeight,leftRight=wrapper.offsetWidth-bodyInner.offsetWidth,maxHeight=overlay.offsetHeight,maxWidth=overlay.offsetWidth,padding=parseInt(S.options.viewportPadding)||20,preserveAspect=(S.player&&S.options.handleOversize!="drag");return S.setDimensions(height,width,maxHeight,maxWidth,topBottom,leftRight,padding,preserveAspect)}var K={};K.markup='<div id="sb-container"><div id="sb-overlay"></div><div id="sb-wrapper"><div id="sb-title"><div id="sb-title-inner"></div></div><div id="sb-wrapper-inner"><div id="sb-body"><div id="sb-body-inner"></div><div id="sb-loading"><div id="sb-loading-inner"><span>{loading}</span></div></div></div></div><div id="sb-info"><div id="sb-info-inner"><div id="sb-counter"></div><div id="sb-nav"><a id="sb-nav-close" title="{close}" onclick="Shadowbox.close()"></a><a id="sb-nav-next" title="{next}" onclick="Shadowbox.next()"></a><a id="sb-nav-play" title="{play}" onclick="Shadowbox.play()"></a><a id="sb-nav-pause" title="{pause}" onclick="Shadowbox.pause()"></a><a id="sb-nav-previous" title="{previous}" onclick="Shadowbox.previous()"></a></div></div></div></div></div>';K.options={animSequence:"sync",counterLimit:10,counterType:"default",displayCounter:true,displayNav:true,fadeDuration:0.35,initialHeight:160,initialWidth:320,modal:false,overlayColor:"#000",overlayOpacity:0.5,resizeDuration:0.35,showOverlay:true,troubleElements:["select","object","embed","canvas"]};K.init=function(){S.appendHTML(document.body,sprintf(K.markup,S.lang));K.body=get("sb-body-inner");container=get("sb-container");overlay=get("sb-overlay");wrapper=get("sb-wrapper");if(!supportsFixed){container.style.position="absolute"}if(!supportsOpacity){var el,m,re=/url\("(.*\.png)"\)/;each(pngIds,function(i,id){el=get(id);if(el){m=S.getStyle(el,"backgroundImage").match(re);if(m){el.style.backgroundImage="none";el.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,src="+m[1]+",sizingMethod=scale);"}}})}var timer;addEvent(window,"resize",function(){if(timer){clearTimeout(timer);timer=null}if(open){timer=setTimeout(K.onWindowResize,10)}})};K.onOpen=function(obj,callback){doWindowResize=false;container.style.display="block";setSize();var dims=setDimensions(S.options.initialHeight,S.options.initialWidth);adjustHeight(dims.innerHeight,dims.top);adjustWidth(dims.width,dims.left);if(S.options.showOverlay){overlay.style.backgroundColor=S.options.overlayColor;S.setOpacity(overlay,0);if(!S.options.modal){addEvent(overlay,"click",S.close)}overlayOn=true}if(!supportsFixed){setPosition();addEvent(window,"scroll",setPosition)}toggleTroubleElements();container.style.visibility="visible";if(overlayOn){animate(overlay,"opacity",S.options.overlayOpacity,S.options.fadeDuration,callback)}else{callback()}};K.onLoad=function(changing,callback){toggleLoading(true);while(K.body.firstChild){remove(K.body.firstChild)}hideBars(changing,function(){if(!open){return}if(!changing){wrapper.style.visibility="visible"}buildBars(callback)})};K.onReady=function(callback){if(!open){return}var player=S.player,dims=setDimensions(player.height,player.width);var wrapped=function(){showBars(callback)};switch(S.options.animSequence){case"hw":adjustHeight(dims.innerHeight,dims.top,true,function(){adjustWidth(dims.width,dims.left,true,wrapped)});break;case"wh":adjustWidth(dims.width,dims.left,true,function(){adjustHeight(dims.innerHeight,dims.top,true,wrapped)});break;default:adjustWidth(dims.width,dims.left,true);adjustHeight(dims.innerHeight,dims.top,true,wrapped)}};K.onShow=function(callback){toggleLoading(false,callback);doWindowResize=true};K.onClose=function(){if(!supportsFixed){removeEvent(window,"scroll",setPosition)}removeEvent(overlay,"click",S.close);wrapper.style.visibility="hidden";var callback=function(){container.style.visibility="hidden";container.style.display="none";toggleTroubleElements(true)};if(overlayOn){animate(overlay,"opacity",0,S.options.fadeDuration,callback)}else{callback()}};K.onPlay=function(){toggleNav("play",false);toggleNav("pause",true)};K.onPause=function(){toggleNav("pause",false);toggleNav("play",true)};K.onWindowResize=function(){if(!doWindowResize){return}setSize();var player=S.player,dims=setDimensions(player.height,player.width);adjustWidth(dims.width,dims.left);adjustHeight(dims.innerHeight,dims.top);if(player.onWindowResize){player.onWindowResize()}};S.skin=K;window.Shadowbox=S})(window);;
// $Id: shadowbox_auto.js,v 1.1.4.4.2.4.2.1 2010/04/03 05:53:55 nicholasalipaz Exp $

Drupal.behaviors.shadowbox = function (context) {
  var settings = Drupal.settings.shadowbox;
  if (settings.auto_enable_all_images == 1) {
    $("a[href$='jpg'], a[href$='png'], a[href$='gif'], a[href$='jpeg'], a[href$='bmp'], a[href$='JPG'], a[href$='PNG'], a[href$='GIF'], a[href$='JPEG'], a[href$='BMP']").each(function() {
      if (settings.auto_gallery == 1) {
        $(this).attr('rel', 'shadowbox[gallery]');
      }
      else {
        $(this).attr('rel', 'shadowbox');
      };
    });
  };
  Shadowbox.setup();
};
;
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('E 1i={8d:\'1.6.0\',1Z:{4e:!!(1C.7p&&!1C.8q),5f:!!1C.8q,5a:4T.52.47(\'dL/\')>-1,7M:4T.52.47(\'7M\')>-1&&4T.52.47(\'aE\')==-1,aa:!!4T.52.1f(/dJ.*dN.*aF/)},3K:{6e:!!1d.3f,6p:!!1C.6o,6W:1d.3W(\'1X\').4X&&1d.3W(\'1X\').4X!==1d.3W(\'1w\').4X},72:\'<59[^>]*>([\\\\S\\\\s]*?)<\\/59>\',bo:/^\\/\\*-dP-([\\s\\S]*)\\*\\/\\s*$/,4c:q(){},K:q(x){o x}};C(1i.1Z.aa)1i.3K.6W=1v;C(1i.1Z.5a)1i.3K.6e=1v;E 2d={2o:q(){E 2R=1m,49=$A(1q);C(L.2m(49[0]))2R=49.54();q 1N(){B.2K.3P(B,1q)}L.19(1N,2d.1b);1N.9d=2R;1N.a6=[];C(2R){E 8G=q(){};8G.1k=2R.1k;1N.1k=1t 8G;2R.a6.1h(1N)}15(E i=0;i<49.O;i++)1N.6r(49[i]);C(!1N.1k.2K)1N.1k.2K=1i.4c;1N.1k.a8=1N;o 1N}};2d.1b={6r:q(22){E 3a=B.9d&&B.9d.1k;E 49=L.4j(22);C(!L.4j({2y:1r}).O)49.1h("2y","ac");15(E i=0,O=49.O;i<O;i++){E 1x=49[i],G=22[1x];C(3a&&L.2m(G)&&G.a9().3M()=="$4a"){E 1G=G,G=L.19((q(m){o q(){o 3a[m].3P(B,1q)}})(1x).7k(1G),{ac:q(){o 1G},2y:q(){o 1G.2y()}})}B.1k[1x]=G}o B}};E 57={};L.19=q(5x,22){15(E 1x 1Q 22)5x[1x]=22[1x];o 5x};L.19(L,{2A:q(14){2v{C(14===1W)o\'1W\';C(14===1m)o\'1m\';o 14.2A?14.2A():14.2y()}2B(e){C(e a4 dH)o\'...\';4u e}},3t:q(14){E 1F=4g 14;5X(1F){2G\'1W\':2G\'q\':2G\'dz\':o;2G\'dC\':o 14.2y()}C(14===1m)o\'1m\';C(14.3t)o 14.3t();C(L.3Q(14))o;E U=[];15(E 1x 1Q 14){E G=L.3t(14[1x]);C(G!==1W)U.1h(1x.3t()+\': \'+G)}o\'{\'+U.2w(\', \')+\'}\'},4r:q(14){o $H(14).4r()},3L:q(14){o 14&&14.3L?14.3L():26.5M(14)},4j:q(14){E 4j=[];15(E 1x 1Q 14)4j.1h(1x);o 4j},1S:q(14){E 1S=[];15(E 1x 1Q 14)1S.1h(14[1x]);o 1S},2z:q(14){o L.19({},14)},3Q:q(14){o 14&&14.3A==1},4C:q(14){o 14&&14.a8===2f},aD:q(14){o 14 a4 3Z},2m:q(14){o 4g 14=="q"},2V:q(14){o 4g 14=="3e"},7Q:q(14){o 4g 14=="4G"},8I:q(14){o 4g 14=="1W"}});L.19(8s.1k,{a9:q(){E 3u=B.2y().1f(/^[\\s\\(]*q[^(]*\\((.*?)\\)/)[1].5b(",").7E("44");o 3u.O==1&&!3u[0]?[]:3u},1E:q(){C(1q.O<2&&1q[0]===1W)o B;E 3i=B,20=$A(1q),14=20.54();o q(){o 3i.3P(14,20.29($A(1q)))}},dR:q(){E 3i=B,20=$A(1q),14=20.54();o q(1c){o 3i.3P(14,[1c||1C.1c].29(20))}},7s:q(){C(!1q.O)o B;E 3i=B,20=$A(1q);o q(){o 3i.3P(B,20.29($A(1q)))}},9y:q(){E 3i=B,20=$A(1q),ad=20.54()*bk;o 1C.e3(q(){o 3i.3P(3i,20)},ad)},7k:q(1K){E 3i=B;o q(){o 1K.3P(B,[3i.1E(B)].29($A(1q)))}},4B:q(){C(B.84)o B.84;E 3i=B;o B.84=q(){o 3i.3P(1m,[B].29($A(1q)))}}});8s.1k.3U=8s.1k.9y.7s(0.dy);dZ.1k.3t=q(){o\'"\'+B.dY()+\'-\'+(B.da()+1).4t(2)+\'-\'+B.de().4t(2)+\'T\'+B.d8().4t(2)+\':\'+B.d6().4t(2)+\':\'+B.dr().4t(2)+\'Z"\'};E aT={aX:q(){E 77;15(E i=0,O=1q.O;i<O;i++){E bh=1q[i];2v{77=bh();2g}2B(e){}}o 77}};4l.1k.1f=4l.1k.2T;4l.ah=q(7X){o 26(7X).1Y(/([.*+?^=!:${}()|[\\]\\/\\\\])/g,\'\\\\$1\')};E cq=2d.2o({2K:q(2Z,4n){B.2Z=2Z;B.4n=4n;B.7B=1v;B.6E()},6E:q(){B.3Y=c3(B.6B.1E(B),B.4n*bk)},8J:q(){B.2Z(B)},9j:q(){C(!B.3Y)o;c2(B.3Y);B.3Y=1m},6B:q(){C(!B.7B){2v{B.7B=1r;B.8J()}dw{B.7B=1v}}}});L.19(26,{5M:q(G){o G==1m?\'\':26(G)},by:{\'\\b\':\'\\\\b\',\'\\t\':\'\\\\t\',\'\\n\':\'\\\\n\',\'\\f\':\'\\\\f\',\'\\r\':\'\\\\r\',\'\\\\\':\'\\\\\\\\\'}});L.19(26.1k,{3k:q(21,3n){E 1s=\'\',22=B,1f;3n=1q.5T.8M(3n);1O(22.O>0){C(1f=22.1f(21)){1s+=22.3B(0,1f.1g);1s+=26.5M(3n(1f));22=22.3B(1f.1g+1f[0].O)}1l{1s+=22,22=\'\'}}o 1s},bp:q(21,3n,3z){3n=B.3k.8M(3n);3z=3z===1W?1:3z;o B.3k(21,q(1f){C(--3z<0)o 1f[0];o 3n(1f)})},cv:q(21,Y){B.3k(21,Y);o 26(B)},dV:q(O,5Z){O=O||30;5Z=5Z===1W?\'...\':5Z;o B.O>O?B.3B(0,O-5Z.O)+5Z:26(B)},44:q(){o B.1Y(/^\\s+/,\'\').1Y(/\\s+$/,\'\')},bB:q(){o B.1Y(/<\\/?[^>]+>/gi,\'\')},3I:q(){o B.1Y(1t 4l(1i.72,\'b9\'),\'\')},bm:q(){E b7=1t 4l(1i.72,\'b9\');E bl=1t 4l(1i.72,\'eM\');o(B.1f(b7)||[]).2O(q(b6){o(b6.1f(bl)||[\'\',\'\'])[1]})},4v:q(){o B.bm().2O(q(59){o 7q(59)})},76:q(){E 5v=1q.5T;5v.3R.7J=B;o 5v.1X.4O},br:q(){E 1X=1t I(\'1X\');1X.4O=B.bB();o 1X.4o[0]?(1X.4o.O>1?$A(1X.4o).42(\'\',q(3p,J){o 3p+J.4H}):1X.4o[0].4H):\'\'},71:q(bA){E 1f=B.44().1f(/([^?#]*)(#.*)?$/);C(!1f)o{};o 1f[1].5b(bA||\'&\').42({},q(3s,1B){C((1B=1B.5b(\'=\'))[0]){E 1o=9k(1B.54());E G=1B.O>1?1B.2w(\'=\'):1B[0];C(G!=1W)G=9k(G);C(1o 1Q 3s){C(!L.4C(3s[1o]))3s[1o]=[3s[1o]];3s[1o].1h(G)}1l 3s[1o]=G}o 3s})},3o:q(){o B.5b(\'\')},97:q(){o B.3B(0,B.O-1)+26.fh(B.bG(B.O-1)+1)},7T:q(3z){o 3z<1?\'\':1t 2f(3z+1).2w(B)},9p:q(){E 4s=B.5b(\'-\'),8z=4s.O;C(8z==1)o 4s[0];E 8L=B.7f(0)==\'-\'?4s[0].7f(0).2Q()+4s[0].5p(1):4s[0];15(E i=1;i<8z;i++)8L+=4s[i].7f(0).2Q()+4s[i].5p(1);o 8L},7l:q(){o B.7f(0).2Q()+B.5p(1).2h()},ek:q(){o B.3k(/::/,\'/\').3k(/([A-Z]+)([A-Z][a-z])/,\'#{1}6N#{2}\').3k(/([a-z\\d])([A-Z])/,\'#{1}6N#{2}\').3k(/-/,\'6N\').2h()},eo:q(){o B.3k(/6N/,\'-\')},2A:q(bE){E 89=B.3k(/[\\er-\\eq\\\\]/,q(1f){E 8a=26.by[1f[0]];o 8a?8a:\'\\\\ef\'+1f[0].bG().4t(2,16)});C(bE)o\'"\'+89.1Y(/"/g,\'\\\\"\')+\'"\';o"\'"+89.1Y(/\'/g,\'\\\\\\\'\')+"\'"},3t:q(){o B.2A(1r)},9G:q(2b){o B.bp(2b||1i.bo,\'#{1}\')},af:q(){E 7X=B.1Y(/\\\\./g,\'@\').1Y(/"[^"\\\\\\n\\r]*"/g,\'\');o(/^[,:{}\\[\\]0-9.\\-+eC-u \\n\\r\\t]*$/).2T(7X)},5J:q(bn){E 3G=B.9G();2v{C(!bn||3G.af())o 7q(\'(\'+3G+\')\')}2B(e){}4u 1t ey(\'eZ ez ap 3e: \'+B.2A())},1M:q(21){o B.47(21)>-1},9i:q(21){o B.47(21)===0},cF:q(21){E d=B.O-21.O;o d>=0&&B.9m(21)===d},6f:q(){o B==\'\'},6c:q(){o/^\\s*$/.2T(B)},eA:q(14,21){o 1t 3d(B,21).3f(14)}});C(1i.1Z.5a||1i.1Z.4e)L.19(26.1k,{76:q(){o B.1Y(/&/g,\'&bs;\').1Y(/</g,\'&bu;\').1Y(/>/g,\'&gt;\')},br:q(){o B.1Y(/&bs;/g,\'&\').1Y(/&bu;/g,\'<\').1Y(/&gt;/g,\'>\')}});26.1k.3k.8M=q(3n){C(L.2m(3n))o 3n;E 5R=1t 3d(3n);o q(1f){o 5R.3f(1f)}};26.1k.ew=26.1k.71;L.19(26.1k.76,{1X:1d.3W(\'1X\'),3R:1d.cR(\'\')});cB(26.1k.76)1X.5I(3R);E 3d=2d.2o({2K:q(5R,21){B.5R=5R.2y();B.21=21||3d.av},3f:q(14){C(L.2m(14.95))14=14.95();o B.5R.3k(B.21,q(1f){C(14==1m)o\'\';E 5j=1f[1]||\'\';C(5j==\'\\\\\')o 1f[2];E 6H=14,6A=1f[3];E 21=/^([^.[]+|\\[((?:.*?[^\\\\])?)\\])(\\.|\\[|$)/,1f=21.aw(6A);C(1f==1m)o 5j;1O(1f!=1m){E aY=1f[1].9i(\'[\')?1f[2].3k(\'\\\\\\\\]\',\']\'):1f[1];6H=6H[aY];C(1m==6H||\'\'==1f[3])2g;6A=6A.5p(\'[\'==1f[3]?1f[1].O:1f[0].O);1f=21.aw(6A)}o 5j+26.5M(6H)}.1E(B))}});3d.av=/(^|.|\\r|\\n)(#\\{(.*?)\\})/;E $2g={};E 2I={1z:q(Y,1L){E 1g=0;Y=Y.1E(1L);2v{B.4d(q(G){Y(G,1g++)})}2B(e){C(e!=$2g)4u e}o B},au:q(4G,Y,1L){Y=Y?Y.1E(1L):1i.K;E 1g=-4G,9u=[],2E=B.3o();1O((1g+=4G)<2E.O)9u.1h(2E.3B(1g,1g+4G));o 9u.92(Y,1L)},9h:q(Y,1L){Y=Y?Y.1E(1L):1i.K;E 1s=1r;B.1z(q(G,1g){1s=1s&&!!Y(G,1g);C(!1s)4u $2g});o 1s},aA:q(Y,1L){Y=Y?Y.1E(1L):1i.K;E 1s=1v;B.1z(q(G,1g){C(1s=!!Y(G,1g))4u $2g});o 1s},92:q(Y,1L){Y=Y?Y.1E(1L):1i.K;E U=[];B.1z(q(G,1g){U.1h(Y(G,1g))});o U},7w:q(Y,1L){Y=Y.1E(1L);E 1s;B.1z(q(G,1g){C(Y(G,1g)){1s=G;4u $2g}});o 1s},5D:q(Y,1L){Y=Y.1E(1L);E U=[];B.1z(q(G,1g){C(Y(G,1g))U.1h(G)});o U},et:q(2b,Y,1L){Y=Y?Y.1E(1L):1i.K;E U=[];C(L.2V(2b))2b=1t 4l(2b);B.1z(q(G,1g){C(2b.1f(G))U.1h(Y(G,1g))});o U},1M:q(14){C(L.2m(B.47))C(B.47(14)!=-1)o 1r;E 9F=1v;B.1z(q(G){C(G==14){9F=1r;4u $2g}});o 9F},eh:q(4G,62){62=62===1W?1m:62;o B.au(4G,q(3B){1O(3B.O<4G)3B.1h(62);o 3B})},42:q(3p,Y,1L){Y=Y.1E(1L);B.1z(q(G,1g){3p=Y(3p,G,1g)});o 3p},7E:q(1G){E 20=$A(1q).3B(1);o B.2O(q(G){o G[1G].3P(G,20)})},eb:q(Y,1L){Y=Y?Y.1E(1L):1i.K;E 1s;B.1z(q(G,1g){G=Y(G,1g);C(1s==1W||G>=1s)1s=G});o 1s},ec:q(Y,1L){Y=Y?Y.1E(1L):1i.K;E 1s;B.1z(q(G,1g){G=Y(G,1g);C(1s==1W||G<1s)1s=G});o 1s},ed:q(Y,1L){Y=Y?Y.1E(1L):1i.K;E 9L=[],9O=[];B.1z(q(G,1g){(Y(G,1g)?9L:9O).1h(G)});o[9L,9O]},5S:q(1x){E U=[];B.1z(q(G){U.1h(G[1x])});o U},ep:q(Y,1L){Y=Y.1E(1L);E U=[];B.1z(q(G,1g){C(!Y(G,1g))U.1h(G)});o U},cl:q(Y,1L){Y=Y.1E(1L);o B.2O(q(G,1g){o{G:G,6C:Y(G,1g)}}).el(q(2J,7t){E a=2J.6C,b=7t.6C;o a<b?-1:a>b?1:0}).5S(\'G\')},3o:q(){o B.2O()},em:q(){E Y=1i.K,20=$A(1q);C(L.2m(20.2p()))Y=20.eK();E at=[B].29(20).2O($A);o B.2O(q(G,1g){o Y(at.5S(1g))})},ak:q(){o B.3o().O},2A:q(){o\'#<2I:\'+B.3o().2A()+\'>\'}};L.19(2I,{2O:2I.92,8Z:2I.7w,2N:2I.5D,2b:2I.5D,eL:2I.1M,f9:2I.3o,f8:2I.9h,f7:2I.aA});q $A(2W){C(!2W)o[];C(2W.3o)o 2W.3o();E O=2W.O,U=1t 2f(O);1O(O--)U[O]=2W[O];o U}C(1i.1Z.5a){q $A(2W){C(!2W)o[];C(!(L.2m(2W)&&2W==\'[14 f5]\')&&2W.3o)o 2W.3o();E O=2W.O,U=1t 2f(O);1O(O--)U[O]=2W[O];o U}}2f.aQ=$A;L.19(2f.1k,2I);C(!2f.1k.94)2f.1k.94=2f.1k.4m;L.19(2f.1k,{4d:q(Y){15(E i=0,O=B.O;i<O;i++)Y(B[i])},cg:q(){B.O=0;o B},3M:q(){o B[0]},2p:q(){o B[B.O-1]},fc:q(){o B.2N(q(G){o G!=1m})},az:q(){o B.42([],q(2E,G){o 2E.29(L.4C(G)?G.az():[G])})},6L:q(){E 1S=$A(1q);o B.2N(q(G){o!1S.1M(G)})},4m:q(ar){o(ar!==1v?B:B.3o()).94()},ff:q(){o B.O>1?B:B[0]},ag:q(ai){o B.42([],q(2E,G,1g){C(0==1g||(ai?2E.2p()!=G:!2E.1M(G)))2E.1h(G);o 2E})},fe:q(2E){o B.ag().5D(q(5O){o 2E.7w(q(G){o 5O===G})})},2z:q(){o[].29(B)},ak:q(){o B.O},2A:q(){o\'[\'+B.2O(L.2A).2w(\', \')+\']\'},3t:q(){E U=[];B.1z(q(14){E G=L.3t(14);C(G!==1W)U.1h(G)});o\'[\'+U.2w(\', \')+\']\'}});C(L.2m(2f.1k.al))2f.1k.4d=2f.1k.al;C(!2f.1k.47)2f.1k.47=q(5O,i){i||(i=0);E O=B.O;C(i<0)i=O+i;15(;i<O;i++)C(B[i]===5O)o i;o-1};C(!2f.1k.9m)2f.1k.9m=q(5O,i){i=eS(i)?B.O:(i<0?B.O+i:i)+1;E n=B.3B(0,i).4m().47(5O);o(n<0)?n:i-n-1};2f.1k.3o=2f.1k.2z;q $w(3e){C(!L.2V(3e))o[];3e=3e.44();o 3e?3e.5b(/\\s+/):[]}C(1i.1Z.5f){2f.1k.29=q(){E 2E=[];15(E i=0,O=B.O;i<O;i++)2E.1h(B[i]);15(E i=0,O=1q.O;i<O;i++){C(L.4C(1q[i])){15(E j=0,an=1q[i].O;j<an;j++)2E.1h(1q[i][j])}1l{2E.1h(1q[i])}}o 2E}}L.19(58.1k,{eO:q(){o B.4t(2,16)},97:q(){o B+1},7T:q(Y){$R(0,B,1r).1z(Y);o B},4t:q(O,am){E 3e=B.2y(am||10);o\'0\'.7T(O-3e.O)+3e},3t:q(){o f0(B)?B.2y():\'1m\'}});$w(\'f1 ea eY eV\').1z(q(1G){58.1k[1G]=eW[1G].4B()});q $H(14){o 1t 3Z(14)};E 3Z=2d.2o(2I,(q(){C(q(){E i=0,9b=q(G){B.1o=G};9b.1k.1o=\'eX\';15(E 1x 1Q 1t 9b(\'fj\'))i++;o i>1}()){q 1z(Y){E 2s=[];15(E 1o 1Q B.3V){E G=B.3V[1o];C(2s.1M(1o))3g;2s.1h(1o);E 1B=[1o,G];1B.1o=1o;1B.G=G;Y(1B)}}}1l{q 1z(Y){15(E 1o 1Q B.3V){E G=B.3V[1o],1B=[1o,G];1B.1o=1o;1B.G=G;Y(1B)}}}q 9D(1o,G){C(L.8I(G))o 1o;o 1o+\'=\'+aS(26.5M(G))}o{2K:q(14){B.3V=L.aD(14)?14.74():L.2z(14)},4d:1z,6R:q(1o,G){o B.3V[1o]=G},9s:q(1o){o B.3V[1o]},d9:q(1o){E G=B.3V[1o];8E B.3V[1o];o G},74:q(){o L.2z(B.3V)},4j:q(){o B.5S(\'1o\')},1S:q(){o B.5S(\'G\')},1g:q(G){E 1f=B.7w(q(1B){o 1B.G===G});o 1f&&1f.1o},d7:q(14){o B.2z().5e(14)},5e:q(14){o 1t 3Z(14).42(B,q(1s,1B){1s.6R(1B.1o,1B.G);o 1s})},4r:q(){o B.2O(q(1B){E 1o=aS(1B.1o),1S=1B.G;C(1S&&4g 1S==\'14\'){C(L.4C(1S))o 1S.2O(9D.7s(1o)).2w(\'&\')}o 9D(1o,1S)}).2w(\'&\')},2A:q(){o\'#<3Z:{\'+B.2O(q(1B){o 1B.2O(L.2A).2w(\': \')}).2w(\', \')+\'}>\'},3t:q(){o L.3t(B.74())},2z:q(){o 1t 3Z(B)}}})());3Z.1k.95=3Z.1k.74;3Z.aQ=$H;E aP=2d.2o(2I,{2K:q(4h,50,5V){B.4h=4h;B.50=50;B.5V=5V},4d:q(Y){E G=B.4h;1O(B.1M(G)){Y(G);G=G.97()}},1M:q(G){C(G<B.4h)o 1v;C(B.5V)o G<B.50;o G<=B.50}});E $R=q(4h,50,5V){o 1t aP(4h,50,5V)};E 1R={aH:q(){o aT.aX(q(){o 1t aJ()},q(){o 1t aW(\'dk.aV\')},q(){o 1t aW(\'di.aV\')})||1v},9P:0};1R.5N={6K:[],4d:q(Y){B.6K.4d(Y)},aN:q(4b){C(!B.1M(4b))B.6K.1h(4b)},dt:q(4b){B.6K=B.6K.6L(4b)},7j:q(2Z,3l,1U,3G){B.1z(q(4b){C(L.2m(4b[2Z])){2v{4b[2Z].3P(4b,[3l,1U,3G])}2B(e){}}})}};L.19(1R.5N,2I);1R.5N.aN({70:q(){1R.9P++},3h:q(){1R.9P--}});1R.9S=2d.2o({2K:q(V){B.V={1G:\'6Q\',7K:1r,6S:\'6U/x-df-1w-dd\',8g:\'dc-8\',4f:\'\',5J:1r,9C:1r};L.19(B.V,V||{});B.V.1G=B.V.1G.2h();C(L.2V(B.V.4f))B.V.4f=B.V.4f.71()}});1R.4P=2d.2o(1R.9S,{9A:1v,2K:q($4a,31,V){$4a(V);B.1U=1R.aH();B.3l(31)},3l:q(31){B.31=31;B.1G=B.V.1G;E 3b=L.2z(B.V.4f);C(![\'9s\',\'6Q\'].1M(B.1G)){3b[\'db\']=B.1G;B.1G=\'6Q\'}B.4f=3b;C(3b=L.4r(3b)){C(B.1G==\'9s\')B.31+=(B.31.1M(\'?\')?\'&\':\'?\')+3b;1l C(/e9|aF|aE/.2T(4T.52))3b+=\'&6N=\'}2v{E 2r=1t 1R.9l(B);C(B.V.70)B.V.70(2r);1R.5N.7j(\'70\',B,2r);B.1U.dT(B.1G.2Q(),B.31,B.V.7K);C(B.V.7K)B.83.1E(B).3U(1);B.1U.7G=B.86.1E(B);B.aI();B.2u=B.1G==\'6Q\'?(B.V.e0||3b):1m;B.1U.e1(B.2u);C(!B.V.7K&&B.1U.aM)B.86()}2B(e){B.4M(e)}},86:q(){E 2M=B.1U.2M;C(2M>1&&!((2M==4)&&B.9A))B.83(B.1U.2M)},aI:q(){E 5k={\'X-e6-e5\':\'aJ\',\'X-1i-8d\':1i.8d,\'e4\':\'3R/dQ, 3R/9x, 6U/6y, 3R/6y, */*\'};C(B.1G==\'6Q\'){5k[\'8O-1F\']=B.V.6S+(B.V.8g?\'; dF=\'+B.V.8g:\'\');C(B.1U.aM&&(4T.52.1f(/7M\\/(\\d{4})/)||[0,aL])[1]<aL)5k[\'dA\']=\'dB\'}C(4g B.V.aK==\'14\'){E 5n=B.V.aK;C(L.2m(5n.1h))15(E i=0,O=5n.O;i<O;i+=2)5k[5n[i]]=5n[i+1];1l $H(5n).1z(q(1B){5k[1B.1o]=1B.G})}15(E 1e 1Q 5k)B.1U.dO(1e,5k[1e])},4K:q(){E 4p=B.6b();o!4p||(4p>=dM&&4p<dK)},6b:q(){2v{o B.1U.4p||0}2B(e){o 0}},83:q(2M){E 6M=1R.4P.aU[2M],2r=1t 1R.9l(B);C(6M==\'9g\'){2v{B.9A=1r;(B.V[\'5Y\'+2r.4p]||B.V[\'5Y\'+(B.4K()?\'fJ\':\'he\')]||1i.4c)(2r,2r.75)}2B(e){B.4M(e)}E 6S=2r.5L(\'8O-1F\');C(B.V.9C==\'aq\'||(B.V.9C&&6S&&6S.1f(/^\\s*(3R|6U)\\/(x-)?(fk|hc)59(;.*)?\\s*$/i)))B.aG()}2v{(B.V[\'5Y\'+6M]||1i.4c)(2r,2r.75);1R.5N.7j(\'5Y\'+6M,B,2r,2r.75)}2B(e){B.4M(e)}C(6M==\'9g\'){B.1U.7G=1i.4c}},5L:q(1e){2v{o B.1U.9e(1e)}2B(e){o 1m}},aG:q(){2v{o 7q((B.1U.3j||\'\').9G())}2B(e){B.4M(e)}},4M:q(8X){(B.V.aO||1i.4c)(B,8X);1R.5N.7j(\'aO\',B,8X)}});1R.4P.aU=[\'hh\',\'hm\',\'hl\',\'hk\',\'9g\'];1R.9l=2d.2o({2K:q(3l){B.3l=3l;E 1U=B.1U=3l.1U,2M=B.2M=1U.2M;C((2M>2&&!1i.1Z.4e)||2M==4){B.4p=B.6b();B.9a=B.aC();B.3j=26.5M(1U.3j);B.75=B.ao()}C(2M==4){E 6y=1U.aR;B.aR=6y===1W?1m:6y;B.h8=B.aj()}},4p:0,9a:\'\',6b:1R.4P.1k.6b,aC:q(){2v{o B.1U.9a||\'\'}2B(e){o\'\'}},5L:1R.4P.1k.5L,gX:q(){2v{o B.9f()}2B(e){o 1m}},9e:q(1e){o B.1U.9e(1e)},9f:q(){o B.1U.9f()},ao:q(){E 3G=B.5L(\'X-ap\');C(!3G)o 1m;3G=9k(ah(3G));2v{o 3G.5J(B.3l.V.aB)}2B(e){B.3l.4M(e)}},aj:q(){E V=B.3l.V;C(!V.5J||(V.5J!=\'aq\'&&!(B.5L(\'8O-1F\')||\'\').1M(\'6U/3G\')))o 1m;2v{o B.1U.3j.5J(V.aB)}2B(e){B.3l.4M(e)}}});1R.bv=2d.2o(1R.4P,{2K:q($4a,3x,31,V){B.3x={4K:(3x.4K||3x),9N:(3x.9N||(3x.4K?1m:3x))};V=V||{};E 3h=V.3h;V.3h=(q(2r,ay){B.ax(2r.3j);C(L.2m(3h))3h(2r,ay)}).1E(B);$4a(31,V)},ax:q(3j){E 5o=B.3x[B.4K()?\'4K\':\'9N\'],V=B.V;C(!V.4v)3j=3j.3I();C(5o=$M(5o)){C(V.4S){C(L.2V(V.4S)){E 4S={};4S[V.4S]=3j;5o.2x(4S)}1l V.4S(5o,3j)}1l 5o.5e(3j)}C(B.4K()){C(B.3h)B.3h.1E(B).3U()}}});1R.gU=2d.2o(1R.9S,{2K:q($4a,3x,31,V){$4a(V);B.3h=B.V.3h;B.4n=(B.V.4n||2);B.5c=(B.V.5c||1);B.9z={};B.3x=3x;B.31=31;B.4h()},4h:q(){B.V.3h=B.aZ.1E(B);B.6B()},9j:q(){B.9z.V.3h=1W;ho(B.3Y);(B.3h||1i.4c).3P(B,1q)},aZ:q(2r){C(B.V.5c){B.5c=(2r.3j==B.bt?B.5c*B.V.5c:1);B.bt=2r.3j}B.3Y=B.6B.1E(B).9y(B.5c*B.4n)},6B:q(){B.9z=1t 1R.bv(B.3x,B.31,B.V)}});q $M(k){C(1q.O>1){15(E i=0,24=[],O=1q.O;i<O;i++)24.1h($M(1q[i]));o 24}C(L.2V(k))k=1d.h7(k);o I.19(k)}C(1i.3K.6e){1d.8U=q(1A,7U){E U=[];E 81=1d.3f(1A,$M(7U)||1d,1m,h5.h4,1m);15(E i=0,O=81.h2;i<O;i++)U.1h(I.19(81.hn(i)));o U}}C(!1C.69)E 69={};C(!69.bq){L.19(69,{bq:1,hp:2,cf:3,hy:4,hB:5,hC:6,hx:7,hq:8,hA:9,hr:10,hs:11,hw:12})}(q(){E k=B.I;B.I=q(17,2j){2j=2j||{};17=17.2h();E 2s=I.2s;C(1i.1Z.4e&&2j.1e){17=\'<\'+17+\' 1e="\'+2j.1e+\'">\';8E 2j.1e;o I.6k(1d.3W(17),2j)}C(!2s[17])2s[17]=I.19(1d.3W(17));o I.6k(2s[17].ht(1v),2j)};L.19(B.I,k||{})}).8Y(1C);I.2s={};I.1b={bw:q(k){o $M(k).18.3q!=\'7P\'},d2:q(k){k=$M(k);I[I.bw(k)?\'bx\':\'bF\'](k);o k},bx:q(k){$M(k).18.3q=\'7P\';o k},bF:q(k){$M(k).18.3q=\'\';o k},d0:q(k){k=$M(k);k.1P.61(k);o k},5e:q(k,W){k=$M(k);C(W&&W.2S)W=W.2S();C(L.3Q(W))o k.5e().2x(W);W=L.3L(W);k.4O=W.3I();W.4v.1E(W).3U();o k},1Y:q(k,W){k=$M(k);C(W&&W.2S)W=W.2S();1l C(!L.3Q(W)){W=L.3L(W);E 2U=k.bD.8r();2U.hu(k);W.4v.1E(W).3U();W=2U.bC(W.3I())}k.1P.8W(W,k);o k},2x:q(k,25){k=$M(k);C(L.2V(25)||L.7Q(25)||L.3Q(25)||(25&&(25.2S||25.3L)))25={5i:25};E W,t,2U;15(1u 1Q 25){W=25[1u];1u=1u.2h();t=I.4N[1u];C(W&&W.2S)W=W.2S();C(L.3Q(W)){t.2x(k,W);3g}W=L.3L(W);2U=k.bD.8r();t.5A(k,2U);t.2x(k,2U.bC(W.3I()));W.4v.1E(W).3U()}o k},7k:q(k,1K,2j){k=$M(k);C(L.3Q(1K))$M(1K).6k(2j||{});1l C(L.2V(1K))1K=1t I(1K,2j);1l 1K=1t I(\'1X\',1K);C(k.1P)k.1P.8W(1K,k);1K.5I(k);o 1K},2A:q(k){k=$M(k);E 1s=\'<\'+k.17.2h();$H({\'1p\':\'1p\',\'1j\':\'60\'}).1z(q(1B){E 1x=1B.3M(),1T=1B.2p();E G=(k[1x]||\'\').2y();C(G)1s+=\' \'+1T+\'=\'+G.2A(1r)});o 1s+\'>\'},7i:q(k,1x){k=$M(k);E 24=[];1O(k=k[1x])C(k.3A==1)24.1h(I.19(k));o 24},6m:q(k){o $M(k).7i(\'1P\')},6l:q(k){o $A($M(k).3S(\'*\')).1z(I.19)},bz:q(k){k=$M(k).5K;1O(k&&k.3A!=1)k=k.3D;o $M(k)},ae:q(k){C(!(k=$M(k).5K))o[];1O(k&&k.3A!=1)k=k.3D;C(k)o[k].29($M(k).4J());o[]},5u:q(k){o $M(k).7i(\'cz\')},4J:q(k){o $M(k).7i(\'3D\')},hE:q(k){k=$M(k);o k.5u().4m().29(k.4J())},1f:q(k,43){C(L.2V(43))43=1t 1a(43);o 43.1f($M(k))},ce:q(k,1A,1g){k=$M(k);C(1q.O==1)o $M(k.1P);E 6m=k.6m();o 1A?1a.5P(6m,1A,1g):6m[1g||0]},hz:q(k,1A,1g){k=$M(k);C(1q.O==1)o k.bz();E 6l=k.6l();o 1A?1a.5P(6l,1A,1g):6l[1g||0]},gS:q(k,1A,1g){k=$M(k);C(1q.O==1)o $M(1a.28.65(k));E 5u=k.5u();o 1A?1a.5P(5u,1A,1g):5u[1g||0]},6w:q(k,1A,1g){k=$M(k);C(1q.O==1)o $M(1a.28.63(k));E 4J=k.4J();o 1A?1a.5P(4J,1A,1g):4J[1g||0]},2N:q(){E 20=$A(1q),k=$M(20.54());o 1a.7x(k,20)},56:q(){E 20=$A(1q),k=$M(20.54());o 1a.7x(k.1P,20).6L(k)},a1:q(k){k=$M(k);E 1p=k.4R(\'1p\'),5v=1q.5T;C(1p)o 1p;do{1p=\'fR\'+5v.9U++}1O($M(1p));k.6k(\'1p\',1p);o 1p},4R:q(k,1e){k=$M(k);C(1i.1Z.4e){E t=I.3E.7V;C(t.1S[1e])o t.1S[1e](k,1e);C(t.3u[1e])1e=t.3u[1e];C(1e.1M(\':\')){o(!k.2j||!k.2j[1e])?1m:k.2j[1e].G}}o k.9q(1e)},6k:q(k,1e,G){k=$M(k);E 2j={},t=I.3E.6G;C(4g 1e==\'14\')2j=1e;1l 2j[1e]=G===1W?1r:G;15(E 2a 1Q 2j){E 1e=t.3u[2a]||2a,G=2j[2a];C(t.1S[2a])1e=t.1S[2a](k,G);C(G===1v||G===1m)k.a7(1e);1l C(G===1r)k.b8(1e,1e);1l k.b8(1e,G)}o k},bW:q(k){o $M(k).5q().3v},bR:q(k){o $M(k).5q().2P},6d:q(k){o 1t I.7z(k)},6Z:q(k,1j){C(!(k=$M(k)))o;E 78=k.1j;o(78.O>0&&(78==1j||1t 4l("(^|\\\\s)"+1j+"(\\\\s|$)").2T(78)))},b4:q(k,1j){C(!(k=$M(k)))o;C(!k.6Z(1j))k.1j+=(k.1j?\' \':\'\')+1j;o k},b5:q(k,1j){C(!(k=$M(k)))o;k.1j=k.1j.1Y(1t 4l("(^|\\\\s+)"+1j+"(\\\\s+|$)"),\' \').44();o k},gT:q(k,1j){C(!(k=$M(k)))o;o k[k.6Z(1j)?\'b5\':\'b4\'](1j)},fL:q(k){k=$M(k);E J=k.5K;1O(J){E b0=J.3D;C(J.3A==3&&!/\\S/.2T(J.4H))k.61(J);J=b0}o k},6f:q(k){o $M(k).4O.6c()},7S:q(k,3a){k=$M(k),3a=$M(3a);C(k.b1)o(k.b1(3a)&8)===8;C(k.7R&&!1i.1Z.5f){E e=k.7R,a=3a.7R,6s=3a.3D;C(!6s){do{3a=3a.1P}1O(!(6s=3a.3D)&&3a.1P)}C(6s)o(e>a&&e<6s.7R)}1O(k=k.1P)C(k==3a)o 1r;o 1v},b2:q(k){k=$M(k);E 3C=k.5g();1C.b2(3C[0],3C[1]);o k},2i:q(k,18){k=$M(k);18=18==\'82\'?\'7N\':18.9p();E G=k.18[18];C(!G){E 8l=1d.fU.g1(k,1m);G=8l?8l[18]:1m}C(18==\'3J\')o G?5w(G):1.0;o G==\'73\'?1m:G},g3:q(k){o $M(k).2i(\'3J\')},85:q(k,4w){k=$M(k);E 8m=k.18,1f;C(L.2V(4w)){k.18.8A+=\';\'+4w;o 4w.1M(\'3J\')?k.5E(4w.1f(/3J:\\s*(\\d?\\.?\\d*)/)[1]):k}15(E 1x 1Q 4w)C(1x==\'3J\')k.5E(4w[1x]);1l 8m[(1x==\'82\'||1x==\'7N\')?(8m.91===1W?\'7N\':\'91\'):1x]=4w[1x];o k},5E:q(k,G){k=$M(k);k.18.3J=(G==1||G===\'\')?\'\':(G<0.7y)?0:G;o k},5q:q(k){k=$M(k);E 3q=$M(k).2i(\'3q\');C(3q!=\'7P\'&&3q!=1m)o{2P:k.5U,3v:k.5W};E 3X=k.18;E bb=3X.8t;E ba=3X.1u;E b3=3X.3q;3X.8t=\'7F\';3X.1u=\'4Q\';3X.3q=\'fZ\';E bi=k.bg;E bj=k.bc;3X.3q=b3;3X.1u=ba;3X.8t=bb;o{2P:bi,3v:bj}},fH:q(k){k=$M(k);E 3C=I.2i(k,\'1u\');C(3C==\'7r\'||!3C){k.8n=1r;k.18.1u=\'6n\';C(1C.8q){k.18.2t=0;k.18.2J=0}}o k},fr:q(k){k=$M(k);C(k.8n){k.8n=1W;k.18.1u=k.18.2t=k.18.2J=k.18.5i=k.18.7t=\'\'}o k},ft:q(k){k=$M(k);C(k.4W)o k;k.4W=I.2i(k,\'8o\')||\'73\';C(k.4W!==\'7F\')k.18.8o=\'7F\';o k},fu:q(k){k=$M(k);C(!k.4W)o k;k.18.8o=k.4W==\'73\'?\'\':k.4W;k.4W=1m;o k},5g:q(k){E 2L=0,2H=0;do{2L+=k.4Z||0;2H+=k.51||0;k=k.48}1O(k);o I.5h(2H,2L)},6j:q(k){E 2L=0,2H=0;do{2L+=k.4Z||0;2H+=k.51||0;k=k.48;C(k){C(k.17==\'9X\')2g;E p=I.2i(k,\'1u\');C(p==\'6n\'||p==\'4Q\')2g}}1O(k);o I.5h(2H,2L)},8D:q(k){k=$M(k);C(k.2i(\'1u\')==\'4Q\')o;E 8p=k.6j();E 2t=8p[1];E 2J=8p[0];E 2P=k.bg;E 3v=k.bc;k.be=2J-5w(k.18.2J||0);k.bd=2t-5w(k.18.2t||0);k.bH=k.18.2P;k.bf=k.18.3v;k.18.1u=\'4Q\';k.18.2t=2t+\'3F\';k.18.2J=2J+\'3F\';k.18.2P=2P+\'3F\';k.18.3v=3v+\'3F\';o k},8w:q(k){k=$M(k);C(k.2i(\'1u\')==\'6n\')o;k.18.1u=\'6n\';E 2t=5w(k.18.2t||0)-(k.bd||0);E 2J=5w(k.18.2J||0)-(k.be||0);k.18.2t=2t+\'3F\';k.18.2J=2J+\'3F\';k.18.3v=k.bf;k.18.2P=k.bH;o k},8B:q(k){E 2L=0,2H=0;do{2L+=k.4z||0;2H+=k.4D||0;k=k.1P}1O(k);o I.5h(2H,2L)},7o:q(k){C(k.48)o $M(k.48);C(k==1d.2u)o $M(k);1O((k=k.1P)&&k!=1d.2u)C(I.2i(k,\'1u\')!=\'7r\')o $M(k);o $M(1d.2u)},6F:q(9H){E 2L=0,2H=0;E k=9H;do{2L+=k.4Z||0;2H+=k.51||0;C(k.48==1d.2u&&I.2i(k,\'1u\')==\'4Q\')2g}1O(k=k.48);k=9H;do{C(!1i.1Z.5f||k.17==\'9X\'){2L-=k.4z||0;2H-=k.4D||0}}1O(k=k.1P);o I.5h(2H,2L)},cN:q(k,22){E V=L.19({9Y:1r,9V:1r,a0:1r,9Z:1r,4Z:0,51:0},1q[2]||{});22=$M(22);E p=22.6F();k=$M(k);E 5y=[0,0];E 2R=1m;C(I.2i(k,\'1u\')==\'4Q\'){2R=k.7o();5y=2R.6F()}C(2R==1d.2u){5y[0]-=1d.2u.51;5y[1]-=1d.2u.4Z}C(V.9Y)k.18.2J=(p[0]-5y[0]+V.51)+\'3F\';C(V.9V)k.18.2t=(p[1]-5y[1]+V.4Z)+\'3F\';C(V.a0)k.18.2P=22.5U+\'3F\';C(V.9Z)k.18.3v=22.5W+\'3F\';o k}};I.1b.a1.9U=1;L.19(I.1b,{fA:I.1b.2N,g5:I.1b.ae});I.3E={6G:{3u:{1j:\'60\',a2:\'15\'},1S:{}}};C(!1d.8r||1i.1Z.5f){I.1b.2x=q(k,25){k=$M(k);C(L.2V(25)||L.7Q(25)||L.3Q(25)||(25&&(25.2S||25.3L)))25={5i:25};E t=I.4N,W,1u,3C,17;15(1u 1Q 25){W=25[1u];1u=1u.2h();3C=t[1u];C(W&&W.2S)W=W.2S();C(L.3Q(W)){3C.2x(k,W);3g}W=L.3L(W);17=((1u==\'5j\'||1u==\'7h\')?k.1P:k).17.2Q();C(t.4k[17]){E 5r=I.6Y(17,W.3I());C(1u==\'2t\'||1u==\'7h\')5r.4m();5r.1z(3C.2x.7s(k))}1l k.gE(3C.6u,W.3I());W.4v.1E(W).3U()}o k}}C(1i.1Z.5f){I.1b.8j=I.1b.2i;I.1b.2i=q(k,18){5X(18){2G\'2J\':2G\'2t\':2G\'7t\':2G\'5i\':C(I.8j(k,\'1u\')==\'7r\')o 1m;6a:o I.8j(k,18)}};I.1b.a5=I.1b.4R;I.1b.4R=q(k,1T){C(1T==\'7c\')o k.7c;o I.a5(k,1T)}}1l C(1i.1Z.4e){$w(\'6j 7o 6F\').1z(q(1G){I.1b[1G]=I.1b[1G].7k(q(8b,k){k=$M(k);E 1u=k.2i(\'1u\');C(1u!=\'7r\')o 8b(k);k.85({1u:\'6n\'});E G=8b(k);k.85({1u:1u});o G})});I.1b.2i=q(k,18){k=$M(k);18=(18==\'82\'||18==\'7N\')?\'91\':18.9p();E G=k.18[18];C(!G&&k.4U)G=k.4U[18];C(18==\'3J\'){C(G=(k.2i(\'2b\')||\'\').1f(/9R\\(3J=(.*)\\)/))C(G[1])o 5w(G[1])/a3;o 1.0}C(G==\'73\'){C((18==\'2P\'||18==\'3v\')&&(k.2i(\'3q\')!=\'7P\'))o k[\'3c\'+18.7l()]+\'3F\';o 1m}o G};I.1b.5E=q(k,G){q 90(2b){o 2b.1Y(/9R\\([^\\)]*\\)/gi,\'\')}k=$M(k);E 4U=k.4U;C((4U&&!4U.gR)||(!4U&&k.18.ab==\'gN\'))k.18.ab=1;E 2b=k.2i(\'2b\'),18=k.18;C(G==1||G===\'\'){(2b=90(2b))?18.2b=2b:18.a7(\'2b\');o k}1l C(G<0.7y)G=0;18.2b=90(2b)+\'9R(3J=\'+(G*a3)+\')\';o k};I.3E={7V:{3u:{\'60\':\'1j\',\'15\':\'a2\'},1S:{7v:q(k,1T){o k.9q(1T,2)},9W:q(k,1T){E J=k.cW(1T);o J?J.G:""},2k:q(k,1T){E 1T=k.9q(1T);o 1T?1T.2y().3B(23,-2):1m},6J:q(k,1T){o $M(k).3O(1T)?1T:1m},18:q(k){o k.18.8A.2h()},7c:q(k){o k.7c}}}};I.3E.6G={3u:L.2z(I.3E.7V.3u),1S:{3H:q(k,G){k.3H=!!G},18:q(k,G){k.18.8A=G?G:\'\'}}};I.3E.8H={};$w(\'gb g7 g8 g9 ga 7D \'+\'gh gj gq gr\').1z(q(2a){I.3E.6G.3u[2a.2h()]=2a;I.3E.8H[2a.2h()]=2a});(q(v){L.19(v,{ci:v.7v,c4:v.7v,1F:v.7v,5F:v.9W,3y:v.6J,3H:v.6J,go:v.6J,gk:v.6J,gm:v.2k,bN:v.2k,gn:v.2k,hd:v.2k,gl:v.2k,gp:v.2k,gu:v.2k,gs:v.2k,gc:v.2k,gg:v.2k,gf:v.2k,ge:v.2k,gd:v.2k,gv:v.2k,gw:v.2k,gM:v.2k,gL:v.2k,gK:v.2k})})(I.3E.7V.1S)}1l C(1i.1Z.7M&&/gJ:1\\.8\\.0/.2T(4T.52)){I.1b.5E=q(k,G){k=$M(k);k.18.3J=(G==1)?0.gO:(G===\'\')?\'\':(G<0.7y)?0:G;o k}}1l C(1i.1Z.5a){I.1b.5E=q(k,G){k=$M(k);k.18.3J=(G==1||G===\'\')?\'\':(G<0.7y)?0:G;C(G==1)C(k.17==\'cd\'&&k.2P){k.2P++;k.2P--}1l 2v{E n=1d.cR(\' \');k.5I(n);k.61(n)}2B(e){}o k};I.1b.5g=q(k){E 2L=0,2H=0;do{2L+=k.4Z||0;2H+=k.51||0;C(k.48==1d.2u)C(I.2i(k,\'1u\')==\'4Q\')2g;k=k.48}1O(k);o I.5h(2H,2L)}}C(1i.1Z.4e||1i.1Z.5f){I.1b.5e=q(k,W){k=$M(k);C(W&&W.2S)W=W.2S();C(L.3Q(W))o k.5e().2x(W);W=L.3L(W);E 17=k.17.2Q();C(17 1Q I.4N.4k){$A(k.4o).1z(q(J){k.61(J)});I.6Y(17,W.3I()).1z(q(J){k.5I(J)})}1l k.4O=W.3I();W.4v.1E(W).3U();o k}}C(1d.3W(\'1X\').cS){I.1b.1Y=q(k,W){k=$M(k);C(W&&W.2S)W=W.2S();C(L.3Q(W)){k.1P.8W(W,k);o k}W=L.3L(W);E 2R=k.1P,17=2R.17.2Q();C(I.4N.4k[17]){E 3D=k.6w();E 5r=I.6Y(17,W.3I());2R.61(k);C(3D)5r.1z(q(J){2R.7a(J,3D)});1l 5r.1z(q(J){2R.5I(J)})}1l k.cS=W.3I();W.4v.1E(W).3U();o k}}I.5h=q(l,t){E 1s=[l,t];1s.2J=l;1s.2t=t;o 1s};I.6Y=q(17,9x){E 1X=1t I(\'1X\'),t=I.4N.4k[17];1X.4O=t[0]+9x+t[1];t[2].7T(q(){1X=1X.5K});o $A(1X.4o)};I.4N={5j:{6u:\'gQ\',2x:q(k,J){k.1P.7a(J,k)},5A:q(k,2U){2U.gP(k)}},2t:{6u:\'gI\',2x:q(k,J){k.7a(J,k.5K)},5A:q(k,2U){2U.gH(k);2U.gA(1r)}},5i:{6u:\'gz\',2x:q(k,J){k.5I(J)}},7h:{6u:\'gy\',2x:q(k,J){k.1P.7a(J,k.3D)},5A:q(k,2U){2U.gx(k)}},4k:{gB:[\'<4L>\',\'</4L>\',1],7Y:[\'<4L><5G>\',\'</5G></4L>\',2],bO:[\'<4L><5G><7g>\',\'</7g></5G></4L>\',3],8i:[\'<4L><5G><7g><cV>\',\'</cV></7g></5G></4L>\',4],cP:[\'<2N>\',\'</2N>\',1]}};(q(){B.5i.5A=B.2t.5A;L.19(B.4k,{bZ:B.4k.7Y,bY:B.4k.7Y,bP:B.4k.8i})}).8Y(I.4N);I.1b.6T={3O:q(k,1T){1T=I.3E.8H[1T]||1T;E J=$M(k).cW(1T);o J&&J.gC}};I.1b.3r={};L.19(I,I.1b);C(!1i.3K.6p&&1d.3W(\'1X\').4X){1C.6o={};1C.6o.1k=1d.3W(\'1X\').4X;1i.3K.6p=1r}I.19=(q(){C(1i.3K.6W)o 1i.K;E 1b={},3r=I.1b.3r;E 19=L.19(q(k){C(!k||k.79||k.3A!=1||k==1C)o k;E 2D=L.2z(1b),17=k.17,1x,G;C(3r[17])L.19(2D,3r[17]);15(1x 1Q 2D){G=2D[1x];C(L.2m(G)&&!(1x 1Q k))k[1x]=G.4B()}k.79=1i.4c;o k},{7n:q(){C(!1i.3K.6p){L.19(1b,I.1b);L.19(1b,I.1b.6T)}}});19.7n();o 19})();I.3O=q(k,1T){C(k.3O)o k.3O(1T);o I.1b.6T.3O(k,1T)};I.6r=q(2D){E F=1i.3K,T=I.1b.3r;C(!2D){L.19(1D,1D.1b);L.19(1D.I,1D.I.1b);L.19(I.1b.3r,{"gG":L.2z(1D.1b),"gF":L.2z(1D.I.1b),"cP":L.2z(1D.I.1b),"cQ":L.2z(1D.I.1b)})}C(1q.O==2){E 17=2D;2D=1q[1]}C(!17)L.19(I.1b,2D||{});1l{C(L.4C(17))17.1z(19);1l 19(17)}q 19(17){17=17.2Q();C(!I.1b.3r[17])I.1b.3r[17]={};L.19(I.1b.3r[17],2D)}q 6X(2D,5x,7O){7O=7O||1v;15(E 1x 1Q 2D){E G=2D[1x];C(!L.2m(G))3g;C(!7O||!(1x 1Q 5x))5x[1x]=G.4B()}}q cM(17){E 1N;E 8u={"gD":"g6","cQ":"fz","P":"fy","fx":"fB","fC":"fG","fF":"fE","fD":"fw","fv":"fo","fn":"5z","fm":"5z","fl":"5z","fp":"5z","fq":"5z","fs":"5z","Q":"fI","fY":"c7","fX":"c7","A":"fW","cd":"fV","g0":"g4","g2":"bI","fT":"bI","bZ":"8e","bY":"8e","7Y":"8e","bO":"fM","bP":"bM","8i":"bM","fK":"fN","fO":"fS"};C(8u[17])1N=\'8v\'+8u[17]+\'I\';C(1C[1N])o 1C[1N];1N=\'8v\'+17+\'I\';C(1C[1N])o 1C[1N];1N=\'8v\'+17.7l()+\'I\';C(1C[1N])o 1C[1N];1C[1N]={};1C[1N].1k=1d.3W(17).4X;o 1C[1N]}C(F.6p){6X(I.1b,6o.1k);6X(I.1b.6T,6o.1k,1r)}C(F.6W){15(E 8K 1Q I.1b.3r){E 1N=cM(8K);C(L.8I(1N))3g;6X(T[8K],1N.1k)}}L.19(I,I.1b);8E I.3r;C(I.19.7n)I.19.7n();I.2s={}};1d.fQ={5q:q(){E 8C={};$w(\'2P 3v\').1z(q(d){E D=d.7l();8C[d]=5v[\'fP\'+D]||(1d.4A[\'bL\'+D]||1d.2u[\'bL\'+D])});o 8C},bR:q(){o B.5q().2P},bW:q(){o B.5q().3v},hD:q(){o I.5h(1C.cT||1d.4A.4D||1d.2u.4D,1C.cU||1d.4A.4z||1d.2u.4z)}};E 1a=2d.2o({2K:q(1A){B.1A=1A.44();B.bV()},bV:q(){C(1i.3K.6e&&!(/(\\[[\\w-]*?:|:3H)/).2T(B.1A))o B.bU();E e=B.1A,4i=1a.6x,h=1a.28,c=1a.6C,3w,p,m;C(1a.5l[e]){B.3N=1a.5l[e];o}B.3N=["B.3N = q(1n) {","E r = 1n, h = 1a.28, c = 1v, n;"];1O(e&&3w!=e&&(/\\S/).2T(e)){3w=e;15(E i 1Q 4i){p=4i[i];C(m=e.1f(p)){B.3N.1h(L.2m(c[i])?c[i](m):1t 3d(c[i]).3f(m));e=e.1Y(m[0],\'\');2g}}}B.3N.1h("o h.98(n);\\n}");7q(B.3N.2w(\'\\n\'));1a.5l[B.1A]=B.3N},bU:q(){E e=B.1A,4i=1a.6x,x=1a.2q,3w,m;C(1a.5l[e]){B.2q=1a.5l[e];o}B.3N=[\'.//*\'];1O(e&&3w!=e&&(/\\S/).2T(e)){3w=e;15(E i 1Q 4i){C(m=e.1f(4i[i])){B.3N.1h(L.2m(x[i])?x[i](m):1t 3d(x[i]).3f(m));e=e.1Y(m[0],\'\');2g}}}B.2q=B.3N.2w(\'\');1a.5l[B.1A]=B.2q},68:q(1n){1n=1n||1d;C(B.2q)o 1d.8U(B.2q,1n);o B.3N(1n)},1f:q(k){B.88=[];E e=B.1A,4i=1a.6x,as=1a.9w;E 3w,p,m;1O(e&&3w!==e&&(/\\S/).2T(e)){3w=e;15(E i 1Q 4i){p=4i[i];C(m=e.1f(p)){C(as[i]){B.88.1h([i,L.2z(m)]);e=e.1Y(m[0],\'\')}1l{o B.68(1d).1M(k)}}}}E 1f=1r,1e,2l;15(E i=0,7m;7m=B.88[i];i++){1e=7m[0],2l=7m[1];C(!1a.9w[1e](k,2l)){1f=1v;2g}}o 1f},2y:q(){o B.1A},2A:q(){o"#<1a:"+B.1A.2A()+">"}});L.19(1a,{5l:{},2q:{4F:"//*",1J:"/*",56:"/6D-4E::*[1]",6i:\'/6D-4E::*\',17:q(m){C(m[1]==\'*\')o\'\';o"[bT-1e()=\'"+m[1].2h()+"\' 8c bT-1e()=\'"+m[1].2Q()+"\']"},1j:"[6g(29(\' \', @60, \' \'), \' #{1} \')]",1p:"[@1p=\'#{1}\']",5B:"[@#{1}]",2a:q(m){m[3]=m[5]||m[6];o 1t 3d(1a.2q.67[m[2]]).3f(m)},64:q(m){E h=1a.2q.2e[m[1]];C(!h)o\'\';C(L.2m(h))o h(m);o 1t 3d(1a.2q.2e[m[1]]).3f(m)},67:{\'=\':"[@#{1}=\'#{3}\']",\'!=\':"[@#{1}!=\'#{3}\']",\'^=\':"[hv-cB(@#{1}, \'#{3}\')]",\'$=\':"[5p(@#{1}, (3e-O(@#{1}) - 3e-O(\'#{3}\') + 1))=\'#{3}\']",\'*=\':"[6g(@#{1}, \'#{3}\')]",\'~=\':"[6g(29(\' \', @#{1}, \' \'), \' #{3} \')]",\'|=\':"[6g(29(\'-\', @#{1}, \'-\'), \'-#{3}-\')]"},2e:{\'3M-1J\':\'[4I(80-4E::*)]\',\'2p-1J\':\'[4I(6D-4E::*)]\',\'6I-1J\':\'[4I(80-4E::* 8c 6D-4E::*)]\',\'6f\':"[3z(*) = 0 9r (3z(3R()) = 0 8c h3(3R(), \' \\t\\r\\n\', \'\') = \'\')]",\'3H\':"[@3H]",\'3y\':"[@3y]",\'cH\':"[4I(@3y)]",\'4I\':q(m){E e=m[6],p=1a.6x,x=1a.2q,3w,m,v;E 87=[];1O(e&&3w!=e&&(/\\S/).2T(e)){3w=e;15(E i 1Q p){C(m=e.1f(p[i])){v=L.2m(x[i])?x[i](m):1t 3d(x[i]).3f(m);87.1h("("+v.5p(1,v.O-1)+")");e=e.1Y(m[0],\'\');2g}}}o"[4I("+87.2w(" 9r ")+")]"},\'1V-1J\':q(m){o 1a.2q.2e.1V("(3z(./80-4E::*) + 1) ",m)},\'1V-2p-1J\':q(m){o 1a.2q.2e.1V("(3z(./6D-4E::*) + 1) ",m)},\'1V-2C-1F\':q(m){o 1a.2q.2e.1V("1u() ",m)},\'1V-2p-2C-1F\':q(m){o 1a.2q.2e.1V("(2p() + 1 - 1u()) ",m)},\'3M-2C-1F\':q(m){m[6]="1";o 1a.2q.2e[\'1V-2C-1F\'](m)},\'2p-2C-1F\':q(m){m[6]="1";o 1a.2q.2e[\'1V-2p-2C-1F\'](m)},\'6I-2C-1F\':q(m){E p=1a.2q.2e;o p[\'3M-2C-1F\'](m)+p[\'2p-2C-1F\'](m)},1V:q(5s,m){E 3T,1I=m[6],9v;C(1I==\'cJ\')1I=\'2n+0\';C(1I==\'cK\')1I=\'2n+1\';C(3T=1I.1f(/^(\\d+)$/))o\'[\'+5s+"= "+3T[1]+\']\';C(3T=1I.1f(/^(-?\\d*)?n(([+-])(\\d+))?/)){C(3T[1]=="-")3T[1]=-1;E a=3T[1]?58(3T[1]):1;E b=3T[2]?58(3T[2]):0;9v="[((#{5s} - #{b}) h6 #{a} = 0) 9r "+"((#{5s} - #{b}) 1X #{a} >= 0)]";o 1t 3d(9v).3f({5s:5s,a:a,b:b})}}}},6C:{17:\'n = h.17(n, r, "#{1}", c);   c = 1v;\',1j:\'n = h.1j(n, r, "#{1}", c); c = 1v;\',1p:\'n = h.1p(n, r, "#{1}", c);        c = 1v;\',5B:\'n = h.5B(n, r, "#{1}"); c = 1v;\',2a:q(m){m[3]=(m[5]||m[6]);o 1t 3d(\'n = h.2a(n, r, "#{1}", "#{3}", "#{2}"); c = 1v;\').3f(m)},64:q(m){C(m[6])m[6]=m[6].1Y(/"/g,\'\\\\"\');o 1t 3d(\'n = h.64(n, "#{1}", "#{6}", r, c); c = 1v;\').3f(m)},4F:\'c = "4F";\',1J:\'c = "1J";\',56:\'c = "56";\',6i:\'c = "6i";\'},6x:{6i:/^\\s*~\\s*/,1J:/^\\s*>\\s*/,56:/^\\s*\\+\\s*/,4F:/^\\s/,17:/^\\s*(\\*|[\\w\\-]+)(\\b|$)?/,1p:/^#([\\w\\-\\*]+)(\\b|$)/,1j:/^\\.([\\w\\-\\*]+)(\\b|$)/,64:/^:((3M|2p|1V|1V-2p|6I)(-1J|-2C-1F)|6f|3H|(en|h1)h0|4I)(\\((.*?)\\))?(\\b|$|(?=\\s)|(?=:))/,5B:/^\\[([\\w]+)\\]/,2a:/\\[((?:[\\w-]*:)?[\\w-]+)\\s*(?:([!^$*~|]?=)\\s*(([\'"])([^\\4]*?)\\4|([^\'"][^\\]]*?)))?\\]/},9w:{17:q(k,2l){o 2l[1].2Q()==k.17.2Q()},1j:q(k,2l){o I.6Z(k,2l[1])},1p:q(k,2l){o k.1p===2l[1]},5B:q(k,2l){o I.3O(k,2l[1])},2a:q(k,2l){E 4H=I.4R(k,2l[1]);o 1a.67[2l[2]](4H,2l[3])}},28:{29:q(a,b){15(E i=0,J;J=b[i];i++)a.1h(J);o a},7Z:q(N){15(E i=0,J;J=N[i];i++)J.41=1r;o N},5H:q(N){15(E i=0,J;J=N[i];i++)J.41=1W;o N},1g:q(1P,4m,6h){1P.41=1r;C(4m){15(E N=1P.4o,i=N.O-1,j=1;i>=0;i--){E J=N[i];C(J.3A==1&&(!6h||J.41))J.6V=j++}}1l{15(E i=0,j=1,N=1P.4o;J=N[i];i++)C(J.3A==1&&(!6h||J.41))J.6V=j++}},98:q(N){C(N.O==0)o N;E U=[],n;15(E i=0,l=N.O;i<l;i++)C(!(n=N[i]).41){n.41=1r;U.1h(I.19(n))}o 1a.28.5H(U)},4F:q(N){E h=1a.28;15(E i=0,U=[],J;J=N[i];i++)h.29(U,J.3S(\'*\'));o U},1J:q(N){E h=1a.28;15(E i=0,U=[],J;J=N[i];i++){15(E j=0,gV=[],1J;1J=J.4o[j];j++)C(1J.3A==1&&1J.17!=\'!\')U.1h(1J)}o U},56:q(N){15(E i=0,U=[],J;J=N[i];i++){E 6w=B.63(J);C(6w)U.1h(6w)}o U},6i:q(N){E h=1a.28;15(E i=0,U=[],J;J=N[i];i++)h.29(U,I.4J(J));o U},63:q(J){1O(J=J.3D)C(J.3A==1)o J;o 1m},65:q(J){1O(J=J.cz)C(J.3A==1)o J;o 1m},17:q(N,1n,17,2F){17=17.2Q();E U=[],h=1a.28;C(N){C(2F){C(2F=="4F"){15(E i=0,J;J=N[i];i++)h.29(U,J.3S(17));o U}1l N=B[2F](N);C(17=="*")o N}15(E i=0,J;J=N[i];i++)C(J.17.2Q()==17)U.1h(J);o U}1l o 1n.3S(17)},1p:q(N,1n,1p,2F){E 2Y=$M(1p),h=1a.28;C(!2Y)o[];C(!N&&1n==1d)o[2Y];C(N){C(2F){C(2F==\'1J\'){15(E i=0,J;J=N[i];i++)C(2Y.1P==J)o[2Y]}1l C(2F==\'4F\'){15(E i=0,J;J=N[i];i++)C(I.7S(2Y,J))o[2Y]}1l C(2F==\'56\'){15(E i=0,J;J=N[i];i++)C(1a.28.65(2Y)==J)o[2Y]}1l N=h[2F](N)}15(E i=0,J;J=N[i];i++)C(J==2Y)o[2Y];o[]}o(2Y&&I.7S(2Y,1n))?[2Y]:[]},1j:q(N,1n,1j,2F){C(N&&2F)N=B[2F](N);o 1a.28.cx(N,1n,1j)},cx:q(N,1n,1j){C(!N)N=1a.28.4F([1n]);E cy=\' \'+1j+\' \';15(E i=0,U=[],J,66;J=N[i];i++){66=J.1j;C(66.O==0)3g;C(66==1j||(\' \'+66+\' \').1M(cy))U.1h(J)}o U},5B:q(N,1n,2a){C(!N)N=1n.3S("*");E U=[];15(E i=0,J;J=N[i];i++)C(I.3O(J,2a))U.1h(J);o U},2a:q(N,1n,2a,G,cD){C(!N)N=1n.3S("*");E 2c=1a.67[cD],U=[];15(E i=0,J;J=N[i];i++){E 4H=I.4R(J,2a);C(4H===1m)3g;C(2c(4H,G))U.1h(J)}o U},64:q(N,1e,G,1n,2F){C(N&&2F)N=B[2F](N);C(!N)N=1n.3S("*");o 1a.2e[1e](N,G,1n)}},2e:{\'3M-1J\':q(N,G,1n){15(E i=0,U=[],J;J=N[i];i++){C(1a.28.65(J))3g;U.1h(J)}o U},\'2p-1J\':q(N,G,1n){15(E i=0,U=[],J;J=N[i];i++){C(1a.28.63(J))3g;U.1h(J)}o U},\'6I-1J\':q(N,G,1n){E h=1a.28;15(E i=0,U=[],J;J=N[i];i++)C(!h.65(J)&&!h.63(J))U.1h(J);o U},\'1V-1J\':q(N,1I,1n){o 1a.2e.1V(N,1I,1n)},\'1V-2p-1J\':q(N,1I,1n){o 1a.2e.1V(N,1I,1n,1r)},\'1V-2C-1F\':q(N,1I,1n){o 1a.2e.1V(N,1I,1n,1v,1r)},\'1V-2p-2C-1F\':q(N,1I,1n){o 1a.2e.1V(N,1I,1n,1r,1r)},\'3M-2C-1F\':q(N,1I,1n){o 1a.2e.1V(N,"1",1n,1v,1r)},\'2p-2C-1F\':q(N,1I,1n){o 1a.2e.1V(N,"1",1n,1r,1r)},\'6I-2C-1F\':q(N,1I,1n){E p=1a.2e;o p[\'2p-2C-1F\'](p[\'3M-2C-1F\'](N,1I,1n),1I,1n)},cI:q(a,b,cE){C(a==0)o b>0?[b]:[];o $R(1,cE).42([],q(3p,i){C(0==(i-b)%a&&(i-b)/a>=0)3p.1h(i);o 3p})},1V:q(N,1I,1n,4m,6h){C(N.O==0)o[];C(1I==\'cJ\')1I=\'2n+0\';C(1I==\'cK\')1I=\'2n+1\';E h=1a.28,U=[],8N=[],m;h.7Z(N);15(E i=0,J;J=N[i];i++){C(!J.1P.41){h.1g(J.1P,4m,6h);8N.1h(J.1P)}}C(1I.1f(/^\\d+$/)){1I=58(1I);15(E i=0,J;J=N[i];i++)C(J.6V==1I)U.1h(J)}1l C(m=1I.1f(/^(-?\\d*)?n(([+-])(\\d+))?/)){C(m[1]=="-")m[1]=-1;E a=m[1]?58(m[1]):1;E b=m[2]?58(m[2]):0;E 8P=1a.2e.cI(a,b,N.O);15(E i=0,J,l=8P.O;J=N[i];i++){15(E j=0;j<l;j++)C(J.6V==8P[j])U.1h(J)}}h.5H(N);h.5H(8N);o U},\'6f\':q(N,G,1n){15(E i=0,U=[],J;J=N[i];i++){C(J.17==\'!\'||(J.5K&&!J.4O.1f(/^\\s*$/)))3g;U.1h(J)}o U},\'4I\':q(N,43,1n){E h=1a.28,gW,m;E 8T=1t 1a(43).68(1n);h.7Z(8T);15(E i=0,U=[],J;J=N[i];i++)C(!J.41)U.1h(J);h.5H(8T);o U},\'cH\':q(N,G,1n){15(E i=0,U=[],J;J=N[i];i++)C(!J.3y)U.1h(J);o U},\'3y\':q(N,G,1n){15(E i=0,U=[],J;J=N[i];i++)C(J.3y)U.1h(J);o U},\'3H\':q(N,G,1n){15(E i=0,U=[],J;J=N[i];i++)C(J.3H)U.1h(J);o U}},67:{\'=\':q(2X,v){o 2X==v},\'!=\':q(2X,v){o 2X!=v},\'^=\':q(2X,v){o 2X.9i(v)},\'$=\':q(2X,v){o 2X.cF(v)},\'*=\':q(2X,v){o 2X.1M(v)},\'~=\':q(2X,v){o(\' \'+2X+\' \').1M(\' \'+v+\' \')},\'|=\':q(2X,v){o(\'-\'+2X.2Q()+\'-\').1M(\'-\'+v.2Q()+\'-\')}},cG:q(24,1A){E 2l=1t 1a(1A).68(),h=1a.28;h.7Z(2l);15(E i=0,U=[],k;k=24[i];i++)C(k.41)U.1h(k);h.5H(2l);o U},5P:q(24,1A,1g){C(L.7Q(1A)){1g=1A;1A=1v}o 1a.cG(24,1A||\'*\')[1g||0]},7x:q(k,5C){E cw=5C.2w(\',\'),5C=[];cw.cv(/(([\\w#:.~>+()\\s-]+|\\*|\\[.*?\\])+)\\s*(,|$)/,q(m){5C.1h(m[1].44())});E U=[],h=1a.28;15(E i=0,l=5C.O,43;i<l;i++){43=1t 1a(5C[i].44());h.29(U,43.68(k))}o(l>1)?h.98(U):U}});q $$(){o 1a.7x(1d,$A(1q))}E 1D={9o:q(1w){$M(1w).9o();o 1w},ck:q(24,V){C(4g V!=\'14\')V={3s:!!V};1l C(V.3s===1W)V.3s=1r;E 1o,G,96=1v,4Y=V.4Y;E 7J=24.42({},q(1s,k){C(!k.3y&&k.1e){1o=k.1e;G=$M(k).32();C(G!=1m&&(k.1F!=\'4Y\'||(!96&&4Y!==1v&&(!4Y||1o==4Y)&&(96=1r)))){C(1o 1Q 1s){C(!L.4C(1s[1o]))1s[1o]=[1s[1o]];1s[1o].1h(G)}1l 1s[1o]=G}}o 1s});o V.3s?7J:L.4r(7J)}};1D.1b={6P:q(1w,V){o 1D.ck(1D.5t(1w),V)},5t:q(1w){o $A($M(1w).3S(\'*\')).42([],q(24,1J){C(1D.I.5m[1J.17.2h()])24.1h(I.19(1J));o 24})},gZ:q(1w,7I,1e){1w=$M(1w);E 7L=1w.3S(\'4y\');C(!7I&&!1e)o $A(7L).2O(I.19);15(E i=0,9c=[],O=7L.O;i<O;i++){E 4y=7L[i];C((7I&&4y.1F!=7I)||(1e&&4y.1e!=1e))3g;9c.1h(I.19(4y))}o 9c},9n:q(1w){1w=$M(1w);1D.5t(1w).7E(\'9n\');o 1w},9I:q(1w){1w=$M(1w);1D.5t(1w).7E(\'9I\');o 1w},cj:q(1w){E 24=$M(1w).5t().5D(q(k){o\'7F\'!=k.1F&&!k.3y});E 9J=24.5D(q(k){o k.3O(\'7D\')&&k.7D>=0}).cl(q(k){o k.7D}).3M();o 9J?9J:24.8Z(q(k){o[\'4y\',\'2N\',\'9t\'].1M(k.17.2h())})},gY:q(1w){1w=$M(1w);1w.cj().cm();o 1w},3l:q(1w,V){1w=$M(1w),V=L.2z(V||{});E 3b=V.4f,5F=1w.4R(\'5F\')||\'\';C(5F.6c())5F=1C.h9.ci;V.4f=1w.6P(1r);C(3b){C(L.2V(3b))3b=3b.71();L.19(V.4f,3b)}C(1w.3O(\'1G\')&&!V.1G)V.1G=1w.1G;o 1t 1R.4P(5F,V)}};1D.I={8Q:q(k){$M(k).8Q();o k},2N:q(k){$M(k).2N();o k}};1D.I.1b={6P:q(k){k=$M(k);C(!k.3y&&k.1e){E G=k.32();C(G!=1W){E 1B={};1B[k.1e]=G;o L.4r(1B)}}o\'\'},32:q(k){k=$M(k);E 1G=k.17.2h();o 1D.I.5m[1G](k)},hj:q(k,G){k=$M(k);E 1G=k.17.2h();1D.I.5m[1G](k,G);o k},cg:q(k){$M(k).G=\'\';o k},hi:q(k){o $M(k).G!=\'\'},cm:q(k){k=$M(k);2v{k.8Q();C(k.2N&&(k.17.2h()!=\'4y\'||![\'99\',\'9o\',\'4Y\'].1M(k.1F)))k.2N()}2B(e){}o k},9n:q(k){k=$M(k);k.hg();k.3y=1r;o k},9I:q(k){k=$M(k);k.3y=1v;o k}};E hb=1D.I;E $F=1D.I.1b.32;1D.I.5m={4y:q(k,G){5X(k.1F.2h()){2G\'co\':2G\'ch\':o 1D.I.5m.cu(k,G);6a:o 1D.I.5m.9t(k,G)}},cu:q(k,G){C(G===1W)o k.3H?k.G:1m;1l k.3H=!!G},9t:q(k,G){C(G===1W)o k.G;1l k.G=G},2N:q(k,1g){C(1g===1W)o B[k.1F==\'2N-ha\'?\'cp\':\'bJ\'](k);1l{E 3m,G,cs=!L.4C(1g);15(E i=0,O=k.O;i<O;i++){3m=k.V[i];G=B.7H(3m);C(cs){C(G==1g){3m.9E=1r;o}}1l 3m.9E=1g.1M(G)}}},cp:q(k){E 1g=k.hf;o 1g>=0?B.7H(k.V[1g]):1m},bJ:q(k){E 1S,O=k.O;C(!O)o 1m;15(E i=0,1S=[];i<O;i++){E 3m=k.V[i];C(3m.9E)1S.1h(B.7H(3m))}o 1S},7H:q(3m){o I.19(3m).3O(\'G\')?3m.G:3m.3R}};57.8k=2d.2o(cq,{2K:q($4a,k,4n,2Z){$4a(2Z,4n);B.k=$M(k);B.4x=B.32()},8J:q(){E G=B.32();C(L.2V(B.4x)&&L.2V(G)?B.4x!=G:26(B.4x)!=26(G)){B.2Z(B.k,G);B.4x=G}}});1D.I.cr=2d.2o(57.8k,{32:q(){o 1D.I.32(B.k)}});1D.cr=2d.2o(57.8k,{32:q(){o 1D.6P(B.k)}});57.6O=2d.2o({2K:q(k,2Z){B.k=$M(k);B.2Z=2Z;B.4x=B.32();C(B.k.17.2h()==\'1w\')B.ct();1l B.6E(B.k)},8h:q(){E G=B.32();C(B.4x!=G){B.2Z(B.k,G);B.4x=G}},ct:q(){1D.5t(B.k).1z(B.6E,B)},6E:q(k){C(k.1F){5X(k.1F.2h()){2G\'co\':2G\'ch\':1H.4q(k,\'dD\',B.8h.1E(B));2g;6a:1H.4q(k,\'dG\',B.8h.1E(B));2g}}}});1D.I.6O=2d.2o(57.6O,{32:q(){o 1D.I.32(B.k)}});1D.6O=2d.2o(57.6O,{32:q(){o 1D.6P(B.k)}});C(!1C.1H)E 1H={};L.19(1H,{dE:8,e2:9,e7:13,dW:27,dX:37,dv:38,d5:39,dx:40,dq:46,dl:36,dn:35,dm:33,ds:34,dj:45,2s:{},8V:q(1c){E k;5X(1c.1F){2G\'dh\':k=1c.dg;2g;2G\'d4\':k=1c.2S;2g;6a:o 1m}o I.19(k)}});1H.1b=(q(){E 55;C(1i.1Z.4e){E cA={0:1,1:4,2:2};55=q(1c,5d){o 1c.99==cA[5d]}}1l C(1i.1Z.5a){55=q(1c,5d){5X(5d){2G 0:o 1c.7C==1&&!1c.cC;2G 1:o 1c.7C==1&&1c.cC;6a:o 1v}}}1l{55=q(1c,5d){o 1c.7C?(1c.7C===5d+1):(1c.99===5d)}}o{eU:q(1c){o 55(1c,0)},eT:q(1c){o 55(1c,1)},eN:q(1c){o 55(1c,2)},k:q(1c){E J=1H.19(1c).7b;o I.19(J.3A==69.cf?J.1P:J)},5P:q(1c,1A){E k=1H.k(1c);o k.1f(1A)?k:k.ce(1A)},4V:q(1c){o{x:1c.bQ||(1c.eP+(1d.4A.4D||1d.2u.4D)),y:1c.bK||(1c.eQ+(1d.4A.4z||1d.2u.4z))}},eR:q(1c){o 1H.4V(1c).x},f2:q(1c){o 1H.4V(1c).y},9j:q(1c){1H.19(1c);1c.bX();1c.bS();1c.f3=1r}}})();1H.19=(q(){E 2D=L.4j(1H.1b).42({},q(m,1e){m[1e]=1H.1b[1e].4B();o m});C(1i.1Z.4e){L.19(2D,{bS:q(){B.fg=1r},bX:q(){B.77=1v},2A:q(){o"[14 1H]"}});o q(1c){C(!1c)o 1v;C(1c.79)o 1c;1c.79=1i.4c;E 4V=1H.4V(1c);L.19(1c,{7b:1c.fi,8V:1H.8V(1c),bQ:4V.x,bK:4V.y});o L.19(1c,2D)}}1l{1H.1k=1H.1k||1d.6z("cc").4X;L.19(1H.1k,2D);o 1i.K}})();L.19(1H,(q(){E 2s=1H.2s;q 9K(k){C(k.93)o k.93;1q.5T.1p=1q.5T.1p||1;o k.93=++1q.5T.1p}q 9Q(1y){C(1y&&1y.1M(\':\'))o"c6";o 1y}q 7d(1p){o 2s[1p]=2s[1p]||{}}q 7e(1p,1y){E c=7d(1p);o c[1y]=c[1y]||[]}q c8(k,1y,2c){E 1p=9K(k);E c=7e(1p,1y);C(c.5S("2c").1M(2c))o 1v;E 1K=q(1c){C(!1H||!1H.19||(1c.1y&&1c.1y!=1y))o 1v;1H.19(1c);2c.8Y(k,1c)};1K.2c=2c;c.1h(1K);o 1K}q 9T(1p,1y,2c){E c=7e(1p,1y);o c.8Z(q(1K){o 1K.2c==2c})}q cb(1p,1y,2c){E c=7d(1p);C(!c[1y])o 1v;c[1y]=c[1y].6L(9T(1p,1y,2c))}q c9(){15(E 1p 1Q 2s)15(E 1y 1Q 2s[1p])2s[1p][1y]=1m}C(1C.7p){1C.7p("bN",c9)}o{4q:q(k,1y,2c){k=$M(k);E 1e=9Q(1y);E 1K=c8(k,1y,2c);C(!1K)o k;C(k.7W){k.7W(1e,1K,1v)}1l{k.7p("5Y"+1e,1K)}o k},53:q(k,1y,2c){k=$M(k);E 1p=9K(k),1e=9Q(1y);C(!2c&&1y){7e(1p,1y).1z(q(1K){k.53(1y,1K.2c)});o k}1l C(!1y){L.4j(7d(1p)).1z(q(1y){k.53(1y)});o k}E 1K=9T(1p,1y,2c);C(!1K)o k;C(k.ca){k.ca(1e,1K,1v)}1l{k.ee("5Y"+1e,1K)}cb(1p,1y,2c);o k},5Q:q(k,1y,3p){k=$M(k);C(k==1d&&1d.6z&&!k.c1)k=1d.4A;C(1d.6z){E 1c=1d.6z("cc");1c.eF("c6",1r,1r)}1l{E 1c=1d.eD();1c.c0="eG"}1c.1y=1y;1c.3p=3p||{};C(1d.6z){k.c1(1c)}1l{k.eJ(1c.c0,1c)}o 1c}}})());L.19(1H,1H.1b);I.6r({5Q:1H.5Q,4q:1H.4q,53:1H.53});L.19(1d,{5Q:I.1b.5Q.4B(),4q:I.1b.4q.4B(),53:I.1b.53.4B()});(q(){E 3Y,9B=1v;q 6v(){C(9B)o;C(3Y)1C.c2(3Y);1d.5Q("eB:c5");9B=1r}C(1d.7W){C(1i.1Z.5a){3Y=1C.c3(q(){C(/c5|d1/.2T(1d.2M))6v()},0);1H.4q(1C,"eu",6v)}1l{1d.7W("ex",6v,1v)}}1l{1d.6G("<59 1p=cL 3U c4=//:><\\/59>");$M("cL").7G=q(){C(B.2M=="d1"){B.7G=1m;6v()}}}})();3Z.4r=L.4r;E ev={3q:I.d2};I.1b.eI=I.1b.7S;E eH={eE:q(k,W){o I.2x(k,{5j:W})},es:q(k,W){o I.2x(k,{2t:W})},eg:q(k,W){o I.2x(k,{5i:W})},ei:q(k,W){o I.2x(k,{7h:W})}};E $3g=1t ej(\'"4u $3g" fa f4, f6 "o" fb\');E 8y={cO:1v,8x:q(){B.d3=1C.cT||1d.4A.4D||1d.2u.4D||0;B.cZ=1C.cU||1d.4A.4z||1d.2u.4z||0},fd:q(k,x,y){C(B.cO)o B.cX(k,x,y);B.6t=x;B.6q=y;B.3c=I.5g(k);o(y>=B.3c[1]&&y<B.3c[1]+k.5W&&x>=B.3c[0]&&x<B.3c[0]+k.5U)},cX:q(k,x,y){E 8f=I.8B(k);B.6t=x+8f[0]-B.d3;B.6q=y+8f[1]-B.cZ;B.3c=I.5g(k);o(B.6q>=B.3c[1]&&B.6q<B.3c[1]+k.5W&&B.6t>=B.3c[0]&&B.6t<B.3c[0]+k.5U)},dp:q(7A,k){C(!7A)o 0;C(7A==\'du\')o((B.3c[1]+k.5W)-B.6q)/k.5W;C(7A==\'dS\')o((B.3c[0]+k.5U)-B.6t)/k.5U},5g:I.1b.5g,6j:I.1b.6j,8D:q(k){8y.8x();o I.8D(k)},8w:q(k){8y.8x();o I.8w(k)},dU:I.1b.8B,48:I.1b.7o,e8:I.1b.6F,2z:q(22,7b,V){V=V||{};o I.cN(7b,22,V)}};C(!1d.7u)1d.7u=q(cY){q 8R(1e){o 1e.6c()?1m:"[6g(29(\' \', @60, \' \'), \' "+1e+" \')]"}cY.7u=1i.3K.6e?q(k,1j){1j=1j.2y().44();E 8S=/\\s/.2T(1j)?$w(1j).2O(8R).2w(\'\'):8R(1j);o 8S?1d.8U(\'.//*\'+8S,k):[]}:q(k,1j){1j=1j.2y().44();E 24=[],6d=(/\\s/.2T(1j)?$w(1j):1m);C(!6d&&!1j)o 24;E N=$M(k).3S(\'*\');1j=\' \'+1j+\' \';15(E i=0,1J,cn;1J=N[i];i++){C(1J.1j&&(cn=\' \'+1J.1j+\' \')&&(cn.1M(1j)||(6d&&6d.9h(q(1e){o!1e.2y().6c()&&cn.1M(\' \'+1e+\' \')}))))24.1h(I.19(1J))}o 24};o q(1j,7U){o $M(7U||1d.2u).7u(1j)}}(I.1b);I.7z=2d.2o();I.7z.1k={2K:q(k){B.k=$M(k)},4d:q(Y){B.k.1j.5b(/\\s+/).2N(q(1e){o 1e.O>0}).4d(Y)},6R:q(1j){B.k.1j=1j},dI:q(8F){C(B.1M(8F))o;B.6R($A(B).29(8F).2w(\' \'))},d0:q(9M){C(!B.1M(9M))o;B.6R($A(B).6L(9M).2w(\' \'))},2y:q(){o $A(B).2w(\' \')}};L.19(I.7z.1k,2I);I.6r();',62,1095,'||||||||||||||||||||element||||return||function|||||||||||this|if||var||value||Element|node||Object|ID|nodes|length||||||results|options|content||iterator||||||object|for||tagName|style|extend|Selector|Methods|event|document|name|match|index|push|Prototype|className|prototype|else|null|root|key|id|arguments|true|result|new|position|false|form|property|eventName|each|expression|pair|window|Form|bind|type|method|Event|formula|child|wrapper|context|include|klass|while|parentNode|in|Ajax|values|attribute|transport|nth|undefined|div|replace|Browser|args|pattern|source||elements|insertions|String||handlers|concat|attr|filter|handler|Class|pseudos|Array|break|toLowerCase|getStyle|attributes|_getEv|matches|isFunction||create|last|xpath|response|cache|top|body|try|join|insert|toString|clone|inspect|catch|of|methods|array|combinator|case|valueL|Enumerable|left|initialize|valueT|readyState|select|map|width|toUpperCase|parent|toElement|test|range|isString|iterable|nv|targetNode|callback||url|getValue||||||||ancestor|params|offset|Template|string|evaluate|continue|onComplete|__method|responseText|gsub|request|opt|replacement|toArray|memo|display|ByTag|hash|toJSON|names|height|le|container|disabled|count|nodeType|slice|pos|nextSibling|_attributeTranslations|px|json|checked|stripScripts|opacity|BrowserFeatures|toHTML|first|matcher|hasAttribute|apply|isElement|text|getElementsByTagName|mm|defer|_object|createElement|els|timer|Hash||_counted|inject|selector|strip|||indexOf|offsetParent|properties|super|responder|emptyFunction|_each|IE|parameters|typeof|start|ps|keys|tags|RegExp|reverse|frequency|childNodes|status|observe|toQueryString|parts|toPaddedString|throw|evalScripts|styles|lastValue|input|scrollTop|documentElement|methodize|isArray|scrollLeft|sibling|descendant|number|nodeValue|not|nextSiblings|success|table|dispatchException|_insertionTranslations|innerHTML|Request|absolute|readAttribute|insertion|navigator|currentStyle|pointer|_overflow|__proto__|submit|offsetTop|end|offsetLeft|userAgent|stopObserving|shift|isButton|adjacent|Abstract|Number|script|WebKit|split|decay|code|update|Opera|cumulativeOffset|_returnOffset|bottom|before|headers|_cache|Serializers|extras|receiver|substring|getDimensions|fragments|fragment|getElements|previousSiblings|self|parseFloat|destination|delta|Heading|initializeRange|attrPresence|expressions|findAll|setOpacity|action|tbody|unmark|appendChild|evalJSON|firstChild|getHeader|interpret|Responders|item|findElement|fire|template|pluck|callee|offsetWidth|exclusive|offsetHeight|switch|on|truncation|class|removeChild|fillWith|nextElementSibling|pseudo|previousElementSibling|nodeClassName|operators|findElements|Node|default|getStatus|blank|classNames|XPath|empty|contains|ofType|laterSibling|positionedOffset|writeAttribute|descendants|ancestors|relative|HTMLElement|ElementExtensions|ycomp|addMethods|nextAncestor|xcomp|adjacency|fireContentLoadedEvent|next|patterns|xml|createEvent|expr|onTimerEvent|criteria|following|registerCallback|viewportOffset|write|ctx|only|_flag|responders|without|state|_|EventObserver|serialize|post|set|contentType|Simulated|application|nodeIndex|SpecificElementExtensions|copy|_getContentFromAnonymousElement|hasClassName|onCreate|toQueryParams|ScriptFragment|auto|toObject|headerJSON|escapeHTML|returnValue|elementClassName|_extendedByPrototype|insertBefore|target|title|getCacheForID|getWrappersForEventName|charAt|tr|after|recursivelyCollect|dispatch|wrap|capitalize|token|refresh|getOffsetParent|attachEvent|eval|static|curry|right|getElementsByClassName|_getAttr|detect|findChildElements|00001|ClassNames|mode|currentlyExecuting|which|tabIndex|invoke|hidden|onreadystatechange|optionValue|typeName|data|asynchronous|inputs|Gecko|cssFloat|onlyIfAbsent|none|isNumber|sourceIndex|descendantOf|times|parentElement|read|addEventListener|str|TBODY|mark|preceding|query|float|respondToReadyState|_methodized|setStyle|onStateChange|exclusion|tokens|escapedString|character|proceed|or|Version|TableSection|offsetcache|encoding|onElementEvent|TD|_getStyle|TimedObserver|css|elementStyle|_madePositioned|overflow|offsets|opera|createRange|Function|visibility|trans|HTML|relativize|prepare|Position|len|cssText|cumulativeScrollOffset|dimensions|absolutize|delete|classNameToAdd|subclass|has|isUndefined|execute|tag|camelized|prepareReplacement|indexed|Content|indices|focus|iter|cond|exclusions|_getElementsByXPath|relatedTarget|replaceChild|exception|call|find|stripAlpha|styleFloat|collect|_eventID|_reverse|toTemplateReplacements|submitted|succ|unique|button|statusText|Test|matchingInputs|superclass|getResponseHeader|getAllResponseHeaders|Complete|all|startsWith|stop|decodeURIComponent|Response|lastIndexOf|disable|reset|camelize|getAttribute|and|get|textarea|slices|predicate|assertions|html|delay|updater|_complete|fired|evalJS|toQueryPair|selected|found|unfilterJSON|forElement|enable|firstByIndex|getEventID|trues|classNameToRemove|failure|falses|activeRequestCount|getDOMEventName|alpha|Base|findWrapper|counter|setTop|_getAttrNode|BODY|setLeft|setHeight|setWidth|identify|htmlFor|100|instanceof|_readAttribute|subclasses|removeAttribute|constructor|argumentNames|MobileSafari|zoom|valueOf|timeout|immediateDescendants|isJSON|uniq|escape|sorted|_getResponseJSON|size|forEach|radix|arrayLength|_getHeaderJSON|JSON|force|inline||collections|eachSlice|Pattern|exec|updateContent|param|flatten|any|sanitizeJSON|getStatusText|isHash|KHTML|Safari|evalResponse|getTransport|setRequestHeaders|XMLHttpRequest|requestHeaders|2005|overrideMimeType|register|onException|ObjectRange|from|responseXML|encodeURIComponent|Try|Events|XMLHTTP|ActiveXObject|these|comp|updateComplete|nextNode|compareDocumentPosition|scrollTo|originalDisplay|addClassName|removeClassName|scriptTag|matchAll|setAttribute|img|originalPosition|originalVisibility|clientHeight|_originalTop|_originalLeft|_originalHeight|clientWidth|lambda|originalWidth|originalHeight|1000|matchOne|extractScripts|sanitize|JSONFilter|sub|ELEMENT_NODE|unescapeHTML|amp|lastText|lt|Updater|visible|hide|specialChar|firstDescendant|separator|stripTags|createContextualFragment|ownerDocument|useDoubleQuotes|show|charCodeAt|_originalWidth|TableCol|selectMany|pageY|client|TableCell|onunload|TR|TH|pageX|getWidth|stopPropagation|local|compileXPathMatcher|compileMatcher|getHeight|preventDefault|TFOOT|THEAD|eventType|dispatchEvent|clearInterval|setInterval|src|loaded|dataavailable|Mod|createWrapper|destroyCache|removeEventListener|destroyWrapper|HTMLEvents|IMG|up|TEXT_NODE|clear|radio|href|findFirstElement|serializeElements|sortBy|activate||checkbox|selectOne|PeriodicalExecuter|Observer|single|registerFormCallbacks|inputSelector|scan|exprs|byClassName|needle|previousSibling|buttonMap|with|metaKey|operator|total|endsWith|matchElements|enabled|getIndices|even|odd|__onDOMContentLoaded|findDOMClass|clonePosition|includeScrollOffsets|SELECT|TEXTAREA|createTextNode|outerHTML|pageXOffset|pageYOffset|td|getAttributeNode|withinIncludingScrolloffsets|instanceMethods|deltaY|remove|complete|toggle|deltaX|mouseout|KEY_RIGHT|getUTCMinutes|merge|getUTCHours|unset|getUTCMonth|_method|UTF|urlencoded|getUTCDate|www|fromElement|mouseover|Microsoft|KEY_INSERT|Msxml2|KEY_HOME|KEY_PAGEUP|KEY_END||overlap|KEY_DELETE|getUTCSeconds|KEY_PAGEDOWN|unregister|vertical|KEY_UP|finally|KEY_DOWN|01|unknown|Connection|close|boolean|click|KEY_BACKSPACE|charset|change|RangeError|add|Apple|300|AppleWebKit|200|Mobile|setRequestHeader|secure|javascript|bindAsEventListener|horizontal|open|realOffset|truncate|KEY_ESC|KEY_LEFT|getUTCFullYear|Date|postBody|send|KEY_TAB|setTimeout|Accept|With|Requested|KEY_RETURN|page|Konqueror|round|max|min|partition|detachEvent|u00|Bottom|inGroupsOf|After|Error|underscore|sort|zip||dasherize|reject|x1f|x00|Top|grep|load|Toggle|parseQuery|DOMContentLoaded|SyntaxError|formed|interpolate|dom|Eaeflnr|createEventObject|Before|initEvent|ondataavailable|Insertion|childOf|fireEvent|pop|member|im|isRightClick|toColorPart|clientX|clientY|pointerX|isNaN|isMiddleClick|isLeftClick|floor|Math|foo|ceil|Badly|isFinite|abs|pointerY|stopped|deprecated|NodeList|use|some|every|entries|is|instead|compact|within|intersect|reduce|cancelBubble|fromCharCode|srcElement|bar|java|H3|H2|H1|Directory|H4|H5|undoPositioned|H6|makeClipping|undoClipping|DIR|DList|FIELDSET|Paragraph|TextArea|getElementsBySelector|FieldSet|UL|DL|OList|OL|UList|makePositioned|Quote|Success|FRAMESET|cleanWhitespace|TableRow|FrameSet|IFRAME|inner|viewport|anonymous_element_|IFrame|COLGROUP|defaultView|Image|Anchor|DEL|INS|block|CAPTION|getComputedStyle|COL|getOpacity|TableCaption|childElements|OptGroup|rowSpan|vAlign|dateTime|accessKey|colSpan|onmouseout|onkeydown|onkeypress|onblur|onfocus|encType||maxLength|multiple|onmousedown|onload|onclick|readonly|onmouseup|readOnly|longDesc|onmousemove||onmouseover|onkeyup|onsubmit|setStartAfter|afterEnd|beforeEnd|collapse|TABLE|specified|OPTGROUP|insertAdjacentHTML|INPUT|FORM|selectNodeContents|afterBegin|rv|onchange|onselect|onreset|normal|999999|setStartBefore|beforeBegin|hasLayout|previous|toggleClassName|PeriodicalUpdater|children|selectorType|getAllHeaders|focusFirstElement|getInputs|abled|dis|snapshotLength|translate|ORDERED_NODE_SNAPSHOT_TYPE|XPathResult|mod|getElementById|responseJSON|location|one|Field|ecma|ondblclick|Failure|selectedIndex|blur|Uninitialized|present|setValue|Interactive|Loaded|Loading|snapshotItem|clearTimeout|ATTRIBUTE_NODE|COMMENT_NODE|DOCUMENT_TYPE_NODE|DOCUMENT_FRAGMENT_NODE|cloneNode|selectNode|starts|NOTATION_NODE|PROCESSING_INSTRUCTION_NODE|CDATA_SECTION_NODE|down|DOCUMENT_NODE|ENTITY_REFERENCE_NODE|ENTITY_NODE|getScrollOffsets|siblings'.split('|'),0,{}))
;
function showTab(b){var a=document.getElementById("tab"+b);a.className="homeTab current";var c=document.getElementById("tab"+b+"Content");c.className="tabVisible"}function hideTab(b){var a=document.getElementById("tab"+b);a.className="homeTab";var c=document.getElementById("tab"+b+"Content");c.className="tabHidden"}function hideDiv(b){var a=document.getElementById(b+"ShowHide");if(a){a.className="divHide"}}function showDiv(b){var a=document.getElementById(b+"ShowHide");if(a){a.className="divShow"}}function rollOver(a){a.firstChild.src=a.firstChild.src.substring(0,a.firstChild.src.length-4)+"_over.gif"}function restore(a){a.firstChild.src=a.firstChild.src.substring(0,a.firstChild.src.length-9)+".gif"}TimeManager=function(){if(window.__TimeManager__){return}window.__TimeManager=this;this.timers=[];this.time=0;this.ids=0;this.frequency=250;this.timerId=setInterval("__TimeManager__.interval()",this.frequency)};TimeManager.prototype.interval=function(){var d;this.time+=this.frequency;var c=this.time;var b=[];for(var a=0;a<this.timers.length;a++){d=this.timers[a];if(d.endTime<c){d.obj[d.method](d.parameters);if(d.type=="timeout"){d.dead=true}else{d.endTime=this.time+d.time}}else{b.push(d)}}this.timers=b};TimeManager.prototype.addTimer=function(a){a.startTime=this.time;a.endTime=this.time+a.time;a.id=this.ids++;this.timers.push(a);return a.id};TimeManager.prototype.kill=function(c){var b=[];for(var a=0;a<this.timers.length;a++){if(this.timers[a].id!=c){b.push(this.timers[a])}else{this.timers[a].dead=true}}this.timers=b};Timer=function(){if(!window.__TimeManager__){window.__TimeManager__=new TimeManager()}this.type="timeout";this.timerId=-1;this.obj=null;this.method="";this.time=0;this.parameters=[];this.dead=false};Timer.prototype.setTimeout=function(c,d,b,a){this.obj=c;this.method=d;this.time=b;this.triggerTime=this.startTime+b;this.parameters=a;__TimeManager__.addTimer(this)};Timer.prototype.setInterval=function(c,d,b,a){this.obj=c;this.type="interval";this.method=d;this.time=b;this.triggerTime=this.startTime+b;this.parameters=a;__TimeManager__.addTimer(this)};Timer.prototype.kill=function(){__TimeManager__.kill(this.id)};var TDC=(TDC)?(TDC):({});Logger=function(a){this.logLevel=a};Logger.prototype.log=function(a){if(window.console&&window.console.log&&this.logLevel>=1){console.log("LOG: "+a)}};Logger.prototype.verbose=function(a){if(window.console&&window.console.log&&this.logLevel>=2){console.log("INFO: "+a)}};Logger.prototype.alert=function(a){alert(a)};TDC.Logger=new Logger(0);TabComponent=function(b,a,e,c){this.num=b;this.name=(a)?(a):(" -- ");this.openDuration=(e)?(e):(0.5);this.closeDuration=(c)?(c):(0.5);this.navSuffix="NavA";this.menuSuffix="Menu";this.overClass="hover";this.simple=false;this.button=$ID(a+this.navSuffix);if(this.button){this.button.owner=this}if(this.button){this.button.onmouseover=function(){TDC.TabGroup.onNavOver(this.owner)}}if(this.button){this.button.onmouseout=function(){TDC.TabGroup.onNavOut(this.owner)}}this.menu=$ID(a+this.menuSuffix);if(this.menu){this.menu.owner=this}this.isOpen=false;var d;if(this.menu){d=this.menu.getDimensions();this.width=d.width;this.height=d.height;this.openDuration*=(this.height/403);this.left=parseInt(this.menu.getStyle("left"));this.top=parseInt(this.menu.getStyle("top"))}else{this.width=0;this.height=0;this.left=0;this.top=0}};TabComponent.prototype.isOverMenu=function(c,a){var b;if(self.innerWidth){b=self.innerWidth}else{if(document.documentElement&&document.documentElement.clientWidth){b=document.documentElement.clientWidth}else{if(document.body){b=document.body.clientWidth}}}var d=(b-1000)/2;d=(d>0)?(d):(0);l=this.left+d;t=this.top;w=this.width;h=550;if(c<l||c>l+w||a>t+h||a<t){return false}else{return true}};TabComponent.prototype.highlight=function(){if(this.button){this.button.addClassName(this.overClass)}};TabComponent.prototype.dehighlight=function(){if(this.button&&!this.isOpen){this.button.removeClassName(this.overClass)}};TabComponent.prototype.close=function(a){if(this.num==0){return}clearInterval(this.timerId);this.isOpen=false;if(!this.button||!this.menu){return}var b=new Effect.BlindUp(this.menu,{duration:this.closeDuration,afterUpdate:function(g){if(!($ID("IFrameHack"))){return}var f=(parseInt(g.element.getStyle("left"))+2)+"px";var d=(parseInt(g.element.getStyle("width"))-5)+"px";var c=(parseInt(g.element.getStyle("height"))-5)+"px";$ID("IFrameHack").setStyle({left:f,height:c,width:d})},afterFinish:function(c){c.element.setStyle({visibility:"hidden"});c.element.owner.dehighlight();c.element.owner.cleanup();TDC.TabGroup.onMenuClose();if($ID("IFrameHack")){$ID("IFrameHack").setStyle({left:"-9999px"})}}})};TabComponent.prototype.open=function(){if(!this.button||!this.menu){return}this.highlight();this.isOpen=true;var a=new Effect.BlindUp(this.menu,{duration:0,afterFinish:function(c){c.element.setStyle({visibility:"visible"});var b=new Effect.BlindDown(c.element,{duration:c.element.owner.openDuration,afterUpdate:function(i){if(!($ID("IFrameHack"))){return}var g=(parseInt(i.element.getStyle("left"))+2)+"px";var f=(parseInt(i.element.getStyle("width"))-5)+"px";var d=(parseInt(i.element.getStyle("height"))-5)+"px";$ID("IFrameHack").setStyle({left:g,height:d,width:f})}})}})};TabComponent.prototype.cleanup=function(){if(this.menu){this.menu.setStyle({visibility:"hidden",height:""+this.height+"px"})}};TDC.TabGroup={openDelay:400,closeDelay:750,openDuration:350,closeDuration:300,nextTab:null,overTab:null,openTab:null,isOpening:false,isClosing:false,wait:false,isOverDropDown:false,timerId:null,tabNames:["","products","solutions","services","support","leadership","about"],tabs:[],useFrameHack:false,init:function(){Event.observe(document.body,"mousemove",function(g){TDC.TabGroup.onMouseMove(g)});var a=navigator.appName;var d=navigator.appVersion;d=d.substr(d.indexOf("MSIE")+5);d=parseInt(d.substr(0,d.indexOf(";")));var f=(a.toLowerCase().indexOf("microsoft")!=-1&&d<=6);var e=((document.getElementsByTagName("select")).length>0);if(f&&e){if(typeof noMenus!="undefined"&&noMenus!=true){new Insertion.Before("productsMenu",'<iframe id="IFrameHack" frameborder="0" scrolling="no"></iframe>');$ID("IFrameHack").setStyle({border:"0px solid white",left:"-9999px",position:"absolute",top:"100px",overflow:"hidden"})}}this.timerId=0;var c;for(var b=0;b<this.tabNames.length;b++){c=new TabComponent(b,this.tabNames[b],(this.openDuration/1000),(this.closeDuration/1000));c.useFrameHack=this.useFrameHack;this.tabs[b]=c}this.overTab=this.tabs[0]},onNavOver:function(a){this.overTab=a;a.highlight();clearTimeout(this.timerId);this.timerId=setTimeout("TDC.TabGroup.openMenu()",this.openDelay)},onNavOut:function(a){this.overTab=null;a.dehighlight()},openMenu:function(){if(this.overTab==this.openTab){return}if(this.openTab){this.openTab.close()}else{this.openTab=this.overTab;this.openTab.open()}},onMenuOpen:function(a){},onMenuClose:function(){this.openTab=null;this.isClosing=false;if(this.overTab){this.openTab=this.overTab;this.openTab.open()}},onMouseMove:function(a){this.mousex=a.clientX;this.mousey=a.clientY;if(this.openTab&&!this.overTab){if(!this.openTab.isOverMenu(this.mousex,this.mousey)){if(!this.isClosing){this.isClosing=true;this.timerId=setTimeout("TDC.TabGroup.close()",this.closeDelay)}}else{clearTimeout(this.timerId)}}},close:function(){if(this.openTab){this.openTab.close()}}};Event.observe(window,"load",function(){TDC.TabGroup.init()});function initTopNav(){}function setActiveTab(a){}(function(a){a.fn.hoverIntent=function(m,k){var n={sensitivity:7,interval:100,timeout:0};n=a.extend(n,k?{over:m,out:k}:m);var p,o,i,d;var e=function(f){p=f.pageX;o=f.pageY};var c=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);if((Math.abs(i-p)+Math.abs(d-o))<n.sensitivity){a(f).unbind("mousemove",e);f.hoverIntent_s=1;return n.over.apply(f,[g])}else{i=p;d=o;f.hoverIntent_t=setTimeout(function(){c(g,f)},n.interval)}};var j=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);f.hoverIntent_s=0;return n.out.apply(f,[g])};var b=function(r){var q=(r.type=="mouseover"?r.fromElement:r.toElement)||r.relatedTarget;while(q&&q!=this){try{q=q.parentNode}catch(r){q=this}}if(q==this){return false}var g=jQuery.extend({},r);var f=this;if(f.hoverIntent_t){f.hoverIntent_t=clearTimeout(f.hoverIntent_t)}if(r.type=="mouseover"){i=g.pageX;d=g.pageY;a(f).bind("mousemove",e);if(f.hoverIntent_s!=1){f.hoverIntent_t=setTimeout(function(){c(g,f)},n.interval)}}else{a(f).unbind("mousemove",e);if(f.hoverIntent_s==1){f.hoverIntent_t=setTimeout(function(){j(g,f)},n.timeout)}}};return this.mouseover(b).mouseout(b)}})(jQuery);;
String.prototype.parseColor=function(){var a="#";if(this.slice(0,4)=="rgb("){var c=this.slice(4,this.length-1).split(",");var b=0;do{a+=parseInt(c[b]).toColorPart()}while(++b<3)}else{if(this.slice(0,1)=="#"){if(this.length==4){for(var b=1;b<4;b++){a+=(this.charAt(b)+this.charAt(b)).toLowerCase()}}if(this.length==7){a=this.toLowerCase()}}}return(a.length==7?a:(arguments[0]||this))};Element.collectTextNodes=function(a){return $A($ID(a).childNodes).collect(function(b){return(b.nodeType==3?b.nodeValue:(b.hasChildNodes()?Element.collectTextNodes(b):""))}).flatten().join("")};Element.collectTextNodesIgnoreClass=function(a,b){return $A($ID(a).childNodes).collect(function(c){return(c.nodeType==3?c.nodeValue:((c.hasChildNodes()&&!Element.hasClassName(c,b))?Element.collectTextNodesIgnoreClass(c,b):""))}).flatten().join("")};Element.setContentZoom=function(a,b){a=$ID(a);a.setStyle({fontSize:(b/100)+"em"});if(Prototype.Browser.WebKit){window.scrollBy(0,0)}return a};Element.getInlineOpacity=function(a){return $ID(a).style.opacity||""};Element.forceRerendering=function(a){try{a=$ID(a);var c=document.createTextNode(" ");a.appendChild(c);a.removeChild(c)}catch(b){}};var Effect={_elementDoesNotExistError:{name:"ElementDoesNotExistError",message:"The specified DOM element does not exist, but is required for this effect to operate"},Transitions:{linear:Prototype.K,sinoidal:function(a){return(-Math.cos(a*Math.PI)/2)+0.5},reverse:function(a){return 1-a},flicker:function(a){var a=((-Math.cos(a*Math.PI)/4)+0.75)+Math.random()/4;return a>1?1:a},wobble:function(a){return(-Math.cos(a*Math.PI*(9*a))/2)+0.5},pulse:function(b,a){a=a||5;return(((b%(1/a))*a).round()==0?((b*a*2)-(b*a*2).floor()):1-((b*a*2)-(b*a*2).floor()))},spring:function(a){return 1-(Math.cos(a*4.5*Math.PI)*Math.exp(-a*6))},none:function(a){return 0},full:function(a){return 1}},DefaultOptions:{duration:1,fps:100,sync:false,from:0,to:1,delay:0,queue:"parallel"},tagifyText:function(a){var b="position:relative";if(Prototype.Browser.IE){b+=";zoom:1"}a=$ID(a);$A(a.childNodes).each(function(c){if(c.nodeType==3){c.nodeValue.toArray().each(function(d){a.insertBefore(new Element("span",{style:b}).update(d==" "?String.fromCharCode(160):d),c)});Element.remove(c)}})},multiple:function(b,c){var e;if(((typeof b=="object")||Object.isFunction(b))&&(b.length)){e=b}else{e=$ID(b).childNodes}var a=Object.extend({speed:0.1,delay:0},arguments[2]||{});var d=a.delay;$A(e).each(function(g,f){new c(g,Object.extend(a,{delay:f*a.speed+d}))})},PAIRS:{slide:["SlideDown","SlideUp"],blind:["BlindDown","BlindUp"],appear:["Appear","Fade"]},toggle:function(b,c){b=$ID(b);c=(c||"appear").toLowerCase();var a=Object.extend({queue:{position:"end",scope:(b.id||"global"),limit:1}},arguments[2]||{});Effect[b.visible()?Effect.PAIRS[c][1]:Effect.PAIRS[c][0]](b,a)}};Effect.DefaultOptions.transition=Effect.Transitions.sinoidal;Effect.ScopedQueue=Class.create(Enumerable,{initialize:function(){this.effects=[];this.interval=null},_each:function(a){this.effects._each(a)},add:function(b){var c=new Date().getTime();var a=Object.isString(b.options.queue)?b.options.queue:b.options.queue.position;switch(a){case"front":this.effects.findAll(function(d){return d.state=="idle"}).each(function(d){d.startOn+=b.finishOn;d.finishOn+=b.finishOn});break;case"with-last":c=this.effects.pluck("startOn").max()||c;break;case"end":c=this.effects.pluck("finishOn").max()||c;break}b.startOn+=c;b.finishOn+=c;if(!b.options.queue.limit||(this.effects.length<b.options.queue.limit)){this.effects.push(b)}if(!this.interval){this.interval=setInterval(this.loop.bind(this),15)}},remove:function(a){this.effects=this.effects.reject(function(b){return b==a});if(this.effects.length==0){clearInterval(this.interval);this.interval=null}},loop:function(){var c=new Date().getTime();for(var b=0,a=this.effects.length;b<a;b++){this.effects[b]&&this.effects[b].loop(c)}}});Effect.Queues={instances:$H(),get:function(a){if(!Object.isString(a)){return a}return this.instances.get(a)||this.instances.set(a,new Effect.ScopedQueue())}};Effect.Queue=Effect.Queues.get("global");Effect.Base=Class.create({position:null,start:function(options){function codeForEvent(options,eventName){return((options[eventName+"Internal"]?"this.options."+eventName+"Internal(this);":"")+(options[eventName]?"this.options."+eventName+"(this);":""))}if(options&&options.transition===false){options.transition=Effect.Transitions.linear}this.options=Object.extend(Object.extend({},Effect.DefaultOptions),options||{});this.currentFrame=0;this.state="idle";this.startOn=this.options.delay*1000;this.finishOn=this.startOn+(this.options.duration*1000);this.fromToDelta=this.options.to-this.options.from;this.totalTime=this.finishOn-this.startOn;this.totalFrames=this.options.fps*this.options.duration;eval('this.render = function(pos){ if (this.state=="idle"){this.state="running";'+codeForEvent(this.options,"beforeSetup")+(this.setup?"this.setup();":"")+codeForEvent(this.options,"afterSetup")+'};if (this.state=="running"){pos=this.options.transition(pos)*'+this.fromToDelta+"+"+this.options.from+";this.position=pos;"+codeForEvent(this.options,"beforeUpdate")+(this.update?"this.update(pos);":"")+codeForEvent(this.options,"afterUpdate")+"}}");this.event("beforeStart");if(!this.options.sync){Effect.Queues.get(Object.isString(this.options.queue)?"global":this.options.queue.scope).add(this)}},loop:function(c){if(c>=this.startOn){if(c>=this.finishOn){this.render(1);this.cancel();this.event("beforeFinish");if(this.finish){this.finish()}this.event("afterFinish");return}var b=(c-this.startOn)/this.totalTime,a=(b*this.totalFrames).round();if(a>this.currentFrame){this.render(b);this.currentFrame=a}}},cancel:function(){if(!this.options.sync){Effect.Queues.get(Object.isString(this.options.queue)?"global":this.options.queue.scope).remove(this)}this.state="finished"},event:function(a){if(this.options[a+"Internal"]){this.options[a+"Internal"](this)}if(this.options[a]){this.options[a](this)}},inspect:function(){var a=$H();for(property in this){if(!Object.isFunction(this[property])){a.set(property,this[property])}}return"#<Effect:"+a.inspect()+",options:"+$H(this.options).inspect()+">"}});Effect.Parallel=Class.create(Effect.Base,{initialize:function(a){this.effects=a||[];this.start(arguments[1])},update:function(a){this.effects.invoke("render",a)},finish:function(a){this.effects.each(function(b){b.render(1);b.cancel();b.event("beforeFinish");if(b.finish){b.finish(a)}b.event("afterFinish")})}});Effect.Tween=Class.create(Effect.Base,{initialize:function(c,f,e){c=Object.isString(c)?$ID(c):c;var b=$A(arguments),d=b.last(),a=b.length==5?b[3]:null;this.method=Object.isFunction(d)?d.bind(c):Object.isFunction(c[d])?c[d].bind(c):function(g){c[d]=g};this.start(Object.extend({from:f,to:e},a||{}))},update:function(a){this.method(a)}});Effect.Event=Class.create(Effect.Base,{initialize:function(){this.start(Object.extend({duration:0},arguments[0]||{}))},update:Prototype.emptyFunction});Effect.Opacity=Class.create(Effect.Base,{initialize:function(b){this.element=$ID(b);if(!this.element){throw (Effect._elementDoesNotExistError)}if(Prototype.Browser.IE&&(!this.element.currentStyle.hasLayout)){this.element.setStyle({zoom:1})}var a=Object.extend({from:this.element.getOpacity()||0,to:1},arguments[1]||{});this.start(a)},update:function(a){this.element.setOpacity(a)}});Effect.Move=Class.create(Effect.Base,{initialize:function(b){this.element=$ID(b);if(!this.element){throw (Effect._elementDoesNotExistError)}var a=Object.extend({x:0,y:0,mode:"relative"},arguments[1]||{});this.start(a)},setup:function(){this.element.makePositioned();this.originalLeft=parseFloat(this.element.getStyle("left")||"0");this.originalTop=parseFloat(this.element.getStyle("top")||"0");if(this.options.mode=="absolute"){this.options.x=this.options.x-this.originalLeft;this.options.y=this.options.y-this.originalTop}},update:function(a){this.element.setStyle({left:(this.options.x*a+this.originalLeft).round()+"px",top:(this.options.y*a+this.originalTop).round()+"px"})}});Effect.MoveBy=function(b,a,c){return new Effect.Move(b,Object.extend({x:c,y:a},arguments[3]||{}))};Effect.Scale=Class.create(Effect.Base,{initialize:function(b,c){this.element=$ID(b);if(!this.element){throw (Effect._elementDoesNotExistError)}var a=Object.extend({scaleX:true,scaleY:true,scaleContent:true,scaleFromCenter:false,scaleMode:"box",scaleFrom:100,scaleTo:c},arguments[2]||{});this.start(a)},setup:function(){this.restoreAfterFinish=this.options.restoreAfterFinish||false;this.elementPositioning=this.element.getStyle("position");this.originalStyle={};["top","left","width","height","fontSize"].each(function(b){this.originalStyle[b]=this.element.style[b]}.bind(this));this.originalTop=this.element.offsetTop;this.originalLeft=this.element.offsetLeft;var a=this.element.getStyle("font-size")||"100%";["em","px","%","pt"].each(function(b){if(a.indexOf(b)>0){this.fontSize=parseFloat(a);this.fontSizeType=b}}.bind(this));this.factor=(this.options.scaleTo-this.options.scaleFrom)/100;this.dims=null;if(this.options.scaleMode=="box"){this.dims=[this.element.offsetHeight,this.element.offsetWidth]}if(/^content/.test(this.options.scaleMode)){this.dims=[this.element.scrollHeight,this.element.scrollWidth]}if(!this.dims){this.dims=[this.options.scaleMode.originalHeight,this.options.scaleMode.originalWidth]}},update:function(a){var b=(this.options.scaleFrom/100)+(this.factor*a);if(this.options.scaleContent&&this.fontSize){this.element.setStyle({fontSize:this.fontSize*b+this.fontSizeType})}this.setDimensions(this.dims[0]*b,this.dims[1]*b)},finish:function(a){if(this.restoreAfterFinish){this.element.setStyle(this.originalStyle)}},setDimensions:function(a,e){var f={};if(this.options.scaleX){f.width=e.round()+"px"}if(this.options.scaleY){f.height=a.round()+"px"}if(this.options.scaleFromCenter){var c=(a-this.dims[0])/2;var b=(e-this.dims[1])/2;if(this.elementPositioning=="absolute"){if(this.options.scaleY){f.top=this.originalTop-c+"px"}if(this.options.scaleX){f.left=this.originalLeft-b+"px"}}else{if(this.options.scaleY){f.top=-c+"px"}if(this.options.scaleX){f.left=-b+"px"}}}this.element.setStyle(f)}});Effect.Highlight=Class.create(Effect.Base,{initialize:function(b){this.element=$ID(b);if(!this.element){throw (Effect._elementDoesNotExistError)}var a=Object.extend({startcolor:"#ffff99"},arguments[1]||{});this.start(a)},setup:function(){if(this.element.getStyle("display")=="none"){this.cancel();return}this.oldStyle={};if(!this.options.keepBackgroundImage){this.oldStyle.backgroundImage=this.element.getStyle("background-image");this.element.setStyle({backgroundImage:"none"})}if(!this.options.endcolor){this.options.endcolor=this.element.getStyle("background-color").parseColor("#ffffff")}if(!this.options.restorecolor){this.options.restorecolor=this.element.getStyle("background-color")}this._base=$R(0,2).map(function(a){return parseInt(this.options.startcolor.slice(a*2+1,a*2+3),16)}.bind(this));this._delta=$R(0,2).map(function(a){return parseInt(this.options.endcolor.slice(a*2+1,a*2+3),16)-this._base[a]}.bind(this))},update:function(a){this.element.setStyle({backgroundColor:$R(0,2).inject("#",function(b,c,d){return b+((this._base[d]+(this._delta[d]*a)).round().toColorPart())}.bind(this))})},finish:function(){this.element.setStyle(Object.extend(this.oldStyle,{backgroundColor:this.options.restorecolor}))}});Effect.ScrollTo=function(d){var c=arguments[1]||{},b=document.viewport.getScrollOffsets(),e=$ID(d).cumulativeOffset(),a=(window.height||document.body.scrollHeight)-document.viewport.getHeight();if(c.offset){e[1]+=c.offset}return new Effect.Tween(null,b.top,e[1]>a?a:e[1],c,function(f){scrollTo(b.left,f.round())})};Effect.Fade=function(c){c=$ID(c);var a=c.getInlineOpacity();var b=Object.extend({from:c.getOpacity()||1,to:0,afterFinishInternal:function(d){if(d.options.to!=0){return}d.element.hide().setStyle({opacity:a})}},arguments[1]||{});return new Effect.Opacity(c,b)};Effect.Appear=function(b){b=$ID(b);var a=Object.extend({from:(b.getStyle("display")=="none"?0:b.getOpacity()||0),to:1,afterFinishInternal:function(c){c.element.forceRerendering()},beforeSetup:function(c){c.element.setOpacity(c.options.from).show()}},arguments[1]||{});return new Effect.Opacity(b,a)};Effect.Puff=function(b){b=$ID(b);var a={opacity:b.getInlineOpacity(),position:b.getStyle("position"),top:b.style.top,left:b.style.left,width:b.style.width,height:b.style.height};return new Effect.Parallel([new Effect.Scale(b,200,{sync:true,scaleFromCenter:true,scaleContent:true,restoreAfterFinish:true}),new Effect.Opacity(b,{sync:true,to:0})],Object.extend({duration:1,beforeSetupInternal:function(c){Position.absolutize(c.effects[0].element)},afterFinishInternal:function(c){c.effects[0].element.hide().setStyle(a)}},arguments[1]||{}))};Effect.BlindUp=function(a){a=$ID(a);a.makeClipping();return new Effect.Scale(a,0,Object.extend({scaleContent:false,scaleX:false,restoreAfterFinish:true,afterFinishInternal:function(b){b.element.hide().undoClipping()}},arguments[1]||{}))};Effect.BlindDown=function(b){b=$ID(b);var a=b.getDimensions();return new Effect.Scale(b,100,Object.extend({scaleContent:false,scaleX:false,scaleFrom:0,scaleMode:{originalHeight:a.height,originalWidth:a.width},restoreAfterFinish:true,afterSetup:function(c){c.element.makeClipping().setStyle({height:"0px"}).show()},afterFinishInternal:function(c){c.element.undoClipping()}},arguments[1]||{}))};Effect.SwitchOff=function(b){b=$ID(b);var a=b.getInlineOpacity();return new Effect.Appear(b,Object.extend({duration:0.4,from:0,transition:Effect.Transitions.flicker,afterFinishInternal:function(c){new Effect.Scale(c.element,1,{duration:0.3,scaleFromCenter:true,scaleX:false,scaleContent:false,restoreAfterFinish:true,beforeSetup:function(d){d.element.makePositioned().makeClipping()},afterFinishInternal:function(d){d.element.hide().undoClipping().undoPositioned().setStyle({opacity:a})}})}},arguments[1]||{}))};Effect.DropOut=function(b){b=$ID(b);var a={top:b.getStyle("top"),left:b.getStyle("left"),opacity:b.getInlineOpacity()};return new Effect.Parallel([new Effect.Move(b,{x:0,y:100,sync:true}),new Effect.Opacity(b,{sync:true,to:0})],Object.extend({duration:0.5,beforeSetup:function(c){c.effects[0].element.makePositioned()},afterFinishInternal:function(c){c.effects[0].element.hide().undoPositioned().setStyle(a)}},arguments[1]||{}))};Effect.Shake=function(d){d=$ID(d);var b=Object.extend({distance:20,duration:0.5},arguments[1]||{});var e=parseFloat(b.distance);var c=parseFloat(b.duration)/10;var a={top:d.getStyle("top"),left:d.getStyle("left")};return new Effect.Move(d,{x:e,y:0,duration:c,afterFinishInternal:function(f){new Effect.Move(f.element,{x:-e*2,y:0,duration:c*2,afterFinishInternal:function(g){new Effect.Move(g.element,{x:e*2,y:0,duration:c*2,afterFinishInternal:function(h){new Effect.Move(h.element,{x:-e*2,y:0,duration:c*2,afterFinishInternal:function(i){new Effect.Move(i.element,{x:e*2,y:0,duration:c*2,afterFinishInternal:function(j){new Effect.Move(j.element,{x:-e,y:0,duration:c,afterFinishInternal:function(k){k.element.undoPositioned().setStyle(a)}})}})}})}})}})}})};Effect.SlideDown=function(c){c=$ID(c).cleanWhitespace();var a=c.down().getStyle("bottom");var b=c.getDimensions();return new Effect.Scale(c,100,Object.extend({scaleContent:false,scaleX:false,scaleFrom:window.opera?0:1,scaleMode:{originalHeight:b.height,originalWidth:b.width},restoreAfterFinish:true,afterSetup:function(d){d.element.makePositioned();d.element.down().makePositioned();if(window.opera){d.element.setStyle({top:""})}d.element.makeClipping().setStyle({height:"0px"}).show()},afterUpdateInternal:function(d){d.element.down().setStyle({bottom:(d.dims[0]-d.element.clientHeight)+"px"})},afterFinishInternal:function(d){d.element.undoClipping().undoPositioned();d.element.down().undoPositioned().setStyle({bottom:a})}},arguments[1]||{}))};Effect.SlideUp=function(c){c=$ID(c).cleanWhitespace();var a=c.down().getStyle("bottom");var b=c.getDimensions();return new Effect.Scale(c,window.opera?0:1,Object.extend({scaleContent:false,scaleX:false,scaleMode:"box",scaleFrom:100,scaleMode:{originalHeight:b.height,originalWidth:b.width},restoreAfterFinish:true,afterSetup:function(d){d.element.makePositioned();d.element.down().makePositioned();if(window.opera){d.element.setStyle({top:""})}d.element.makeClipping().show()},afterUpdateInternal:function(d){d.element.down().setStyle({bottom:(d.dims[0]-d.element.clientHeight)+"px"})},afterFinishInternal:function(d){d.element.hide().undoClipping().undoPositioned();d.element.down().undoPositioned().setStyle({bottom:a})}},arguments[1]||{}))};Effect.BlindLeft=function(a){a=$ID(a);a.makeClipping();return new Effect.Scale(a,0,Object.extend({scaleContent:true,scaleY:false,duration:2,restoreAfterFinish:true,afterFinishInternal:function(b){b.element.hide().undoClipping()}},arguments[1]||{}))};Effect.BlindRight=function(b){b=$ID(b);var a=b.getDimensions();return new Effect.Scale(b,100,Object.extend({scaleContent:false,scaleY:false,scaleFrom:0,duration:3,scaleMode:{originalHeight:a.height,originalWidth:a.width},restoreAfterFinish:true,afterSetup:function(c){c.element.makeClipping().setStyle({width:"0px"}).show()},afterFinishInternal:function(c){c.element.undoClipping()}},arguments[1]||{}))};Effect.FadeIn=function(a){a=$ID(a);new Effect.Appear(a,arguments[1]||{})};Effect.FadeOut=function(a){a=$ID(a);new Effect.Fade(a,arguments[1]||{})};Effect.Fader=function(a){a=$ID(a);if(a.style.display=="none"){new Effect.FadeIn(a,arguments[1]||{})}else{new Effect.FadeOut(a,arguments[1]||{})}};Effect.Squish=function(a){return new Effect.Scale(a,window.opera?1:0,{restoreAfterFinish:true,beforeSetup:function(b){b.element.makeClipping()},afterFinishInternal:function(b){b.element.hide().undoClipping()}})};Effect.Grow=function(c){c=$ID(c);var b=Object.extend({direction:"center",moveTransition:Effect.Transitions.sinoidal,scaleTransition:Effect.Transitions.sinoidal,opacityTransition:Effect.Transitions.full},arguments[1]||{});var a={top:c.style.top,left:c.style.left,height:c.style.height,width:c.style.width,opacity:c.getInlineOpacity()};var g=c.getDimensions();var h,f;var e,d;switch(b.direction){case"top-left":h=f=e=d=0;break;case"top-right":h=g.width;f=d=0;e=-g.width;break;case"bottom-left":h=e=0;f=g.height;d=-g.height;break;case"bottom-right":h=g.width;f=g.height;e=-g.width;d=-g.height;break;case"center":h=g.width/2;f=g.height/2;e=-g.width/2;d=-g.height/2;break}return new Effect.Move(c,{x:h,y:f,duration:0.01,beforeSetup:function(i){i.element.hide().makeClipping().makePositioned()},afterFinishInternal:function(i){new Effect.Parallel([new Effect.Opacity(i.element,{sync:true,to:1,from:0,transition:b.opacityTransition}),new Effect.Move(i.element,{x:e,y:d,sync:true,transition:b.moveTransition}),new Effect.Scale(i.element,100,{scaleMode:{originalHeight:g.height,originalWidth:g.width},sync:true,scaleFrom:window.opera?1:0,transition:b.scaleTransition,restoreAfterFinish:true})],Object.extend({beforeSetup:function(j){j.effects[0].element.setStyle({height:"0px"}).show()},afterFinishInternal:function(j){j.effects[0].element.undoClipping().undoPositioned().setStyle(a)}},b))}})};Effect.Shrink=function(c){c=$ID(c);var b=Object.extend({direction:"center",moveTransition:Effect.Transitions.sinoidal,scaleTransition:Effect.Transitions.sinoidal,opacityTransition:Effect.Transitions.none},arguments[1]||{});var a={top:c.style.top,left:c.style.left,height:c.style.height,width:c.style.width,opacity:c.getInlineOpacity()};var f=c.getDimensions();var e,d;switch(b.direction){case"top-left":e=d=0;break;case"top-right":e=f.width;d=0;break;case"bottom-left":e=0;d=f.height;break;case"bottom-right":e=f.width;d=f.height;break;case"center":e=f.width/2;d=f.height/2;break}return new Effect.Parallel([new Effect.Opacity(c,{sync:true,to:0,from:1,transition:b.opacityTransition}),new Effect.Scale(c,window.opera?1:0,{sync:true,transition:b.scaleTransition,restoreAfterFinish:true}),new Effect.Move(c,{x:e,y:d,sync:true,transition:b.moveTransition})],Object.extend({beforeStartInternal:function(g){g.effects[0].element.makePositioned().makeClipping()},afterFinishInternal:function(g){g.effects[0].element.hide().undoClipping().undoPositioned().setStyle(a)}},b))};Effect.Pulsate=function(c){c=$ID(c);var b=arguments[1]||{};var a=c.getInlineOpacity();var e=b.transition||Effect.Transitions.sinoidal;var d=function(f){return e(1-Effect.Transitions.pulse(f,b.pulses))};d.bind(e);return new Effect.Opacity(c,Object.extend(Object.extend({duration:2,from:0,afterFinishInternal:function(f){f.element.setStyle({opacity:a})}},b),{transition:d}))};Effect.Fold=function(b){b=$ID(b);var a={top:b.style.top,left:b.style.left,width:b.style.width,height:b.style.height};b.makeClipping();return new Effect.Scale(b,5,Object.extend({scaleContent:false,scaleX:false,afterFinishInternal:function(c){new Effect.Scale(b,1,{scaleContent:false,scaleY:false,afterFinishInternal:function(d){d.element.hide().undoClipping().setStyle(a)}})}},arguments[1]||{}))};Effect.Morph=Class.create(Effect.Base,{initialize:function(c){this.element=$ID(c);if(!this.element){throw (Effect._elementDoesNotExistError)}var a=Object.extend({style:{}},arguments[1]||{});if(!Object.isString(a.style)){this.style=$H(a.style)}else{if(a.style.include(":")){this.style=a.style.parseStyle()}else{this.element.addClassName(a.style);this.style=$H(this.element.getStyles());this.element.removeClassName(a.style);var b=this.element.getStyles();this.style=this.style.reject(function(d){return d.value==b[d.key]});a.afterFinishInternal=function(d){d.element.addClassName(d.options.style);d.transforms.each(function(e){d.element.style[e.style]=""})}}}this.start(a)},setup:function(){function a(b){if(!b||["rgba(0, 0, 0, 0)","transparent"].include(b)){b="#ffffff"}b=b.parseColor();return $R(0,2).map(function(c){return parseInt(b.slice(c*2+1,c*2+3),16)})}this.transforms=this.style.map(function(g){var f=g[0],e=g[1],d=null;if(e.parseColor("#zzzzzz")!="#zzzzzz"){e=e.parseColor();d="color"}else{if(f=="opacity"){e=parseFloat(e);if(Prototype.Browser.IE&&(!this.element.currentStyle.hasLayout)){this.element.setStyle({zoom:1})}}else{if(Element.CSS_LENGTH.test(e)){var c=e.match(/^([\+\-]?[0-9\.]+)(.*)$/);e=parseFloat(c[1]);d=(c.length==3)?c[2]:null}}}var b=this.element.getStyle(f);return{style:f.camelize(),originalValue:d=="color"?a(b):parseFloat(b||0),targetValue:d=="color"?a(e):e,unit:d}}.bind(this)).reject(function(b){return((b.originalValue==b.targetValue)||(b.unit!="color"&&(isNaN(b.originalValue)||isNaN(b.targetValue))))})},update:function(a){var d={},b,c=this.transforms.length;while(c--){d[(b=this.transforms[c]).style]=b.unit=="color"?"#"+(Math.round(b.originalValue[0]+(b.targetValue[0]-b.originalValue[0])*a)).toColorPart()+(Math.round(b.originalValue[1]+(b.targetValue[1]-b.originalValue[1])*a)).toColorPart()+(Math.round(b.originalValue[2]+(b.targetValue[2]-b.originalValue[2])*a)).toColorPart():(b.originalValue+(b.targetValue-b.originalValue)*a).toFixed(3)+(b.unit===null?"":b.unit)}this.element.setStyle(d,true)}});Effect.Transform=Class.create({initialize:function(a){this.tracks=[];this.options=arguments[1]||{};this.addTracks(a)},addTracks:function(a){a.each(function(b){b=$H(b);var c=b.values().first();this.tracks.push($H({ids:b.keys().first(),effect:Effect.Morph,options:{style:c}}))}.bind(this));return this},play:function(){return new Effect.Parallel(this.tracks.map(function(a){var d=a.get("ids"),c=a.get("effect"),b=a.get("options");var e=[$ID(d)||$$(d)].flatten();return e.map(function(f){return new c(f,Object.extend({sync:true},b))})}).flatten(),this.options)}});Element.CSS_PROPERTIES=$w("backgroundColor backgroundPosition borderBottomColor borderBottomStyle borderBottomWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderSpacing borderTopColor borderTopStyle borderTopWidth bottom clip color fontSize fontWeight height left letterSpacing lineHeight marginBottom marginLeft marginRight marginTop markerOffset maxHeight maxWidth minHeight minWidth opacity outlineColor outlineOffset outlineWidth paddingBottom paddingLeft paddingRight paddingTop right textIndent top width wordSpacing zIndex");Element.CSS_LENGTH=/^(([\+\-]?[0-9\.]+)(em|ex|px|in|cm|mm|pt|pc|\%))|0$/;String.__parseStyleElement=document.createElement("div");String.prototype.parseStyle=function(){var b,a=$H();if(Prototype.Browser.WebKit){b=new Element("div",{style:this}).style}else{String.__parseStyleElement.innerHTML='<div style="'+this+'"></div>';b=String.__parseStyleElement.childNodes[0].style}Element.CSS_PROPERTIES.each(function(c){if(b[c]){a.set(c,b[c])}});if(Prototype.Browser.IE&&this.include("opacity")){a.set("opacity",this.match(/opacity:\s*((?:0|1)?(?:\.\d*)?)/)[1])}return a};if(document.defaultView&&document.defaultView.getComputedStyle){Element.getStyles=function(b){var a=document.defaultView.getComputedStyle($ID(b),null);return Element.CSS_PROPERTIES.inject({},function(c,d){c[d]=a[d];return c})}}else{Element.getStyles=function(b){b=$ID(b);var a=b.currentStyle,c;c=Element.CSS_PROPERTIES.inject({},function(e,d){e.set(d,a[d]);return e});if(!c.opacity){c.set("opacity",b.getOpacity())}return c}}Effect.Methods={morph:function(a,b){a=$ID(a);new Effect.Morph(a,Object.extend({style:b},arguments[2]||{}));return a},visualEffect:function(c,e,b){c=$ID(c);var d=e.dasherize().camelize(),a=d.charAt(0).toUpperCase()+d.substring(1);new Effect[a](c,b);return c},highlight:function(b,a){b=$ID(b);new Effect.Highlight(b,a);return b}};$w("fade appear grow shrink fold blindUp blindDown slideUp slideDown pulsate shake puff squish switchOff dropOut").each(function(a){Effect.Methods[a]=function(c,b){c=$ID(c);Effect[a.charAt(0).toUpperCase()+a.substring(1)](c,b);return c}});$w("getInlineOpacity forceRerendering setContentZoom collectTextNodes collectTextNodesIgnoreClass getStyles").each(function(a){Effect.Methods[a]=Element[a]});Element.addMethods(Effect.Methods);;
function clearTabs() {
	// clear all list items that begin with tab*
	var tabMatcher = new RegExp("^tab[A-Z][A-Za-z0-9_]+$");
	var listItems = document.getElementsByTagName("li");
	for (var i=0; i<listItems.length; ++i) {
		var listItem = listItems.item(i);
		if (listItem && listItem.id && (listItem.id.search(tabMatcher) != -1)) {
			if (listItem.className.indexOf("middle leftTab") != -1)
				listItem.className = "middle leftTab";
			else if (listItem.className.indexOf("leftTab current middle") != -1)
				listItem.className = "middle leftTab";
			else if (listItem.className.indexOf("middle leftTab current") != -1)
				listItem.className = "middle leftTab";
			else if (listItem.className.indexOf("leftTab") != -1)
				listItem.className = "leftTab";
			else if (listItem.className.indexOf("middle") != -1)
				listItem.className = "middle";
			else
				listItem.className = "";
		}
	}
	// clear all divs that begin with body*	
	var bodyMatcher = new RegExp("^body[A-Z][A-Za-z0-9_]+$");
	var divs = document.getElementsByTagName("div");
	for (var i=0; i<divs.length; ++i) {
		var div = divs.item(i);
		if (div && div.id && (div.id.search(bodyMatcher) != -1))
			div.style.display="none";
	}
}
	
// USAGE:  <li id="tabSupport" onclick="displayTab(this); return false;"><a href="#">Support</a></li>
function displayTab(listItem) {
	var div = document.getElementById("body"+listItem.getAttribute('id').substring(3));
	if (div) {
		clearTabs();
		if (listItem.className.indexOf("middle leftTab") != -1)
				listItem.className = "middle leftTab current";
		else if (listItem.className.indexOf("leftTab") != -1)
				listItem.className = "leftTab current";
		else if (listItem.className.indexOf("middle") != -1)
				listItem.className = "middle current";
		else
				listItem.className = "current";
		div.style.display="block";
	}		
	return false;	
}


// Generate Deprecated Functions
var tabNames = new Array (
	"PressReleases", "InTheNews", "VideoPodcasts", "Blogs", // social media newsroom
	"Sales", "Support", "Services", "Corporate", "Training", // contact
	// howtobuy
	"One", "Two", "Three", "Four", 
	// photo gallery + product category
	"Executives", "Products", "Categories",
	// product detail
	"Overview", "Features", "AddOns", "Evaluation_Software", "Related","ThreeD",
	// product landing
	"Category", "ProdFamily", "NameAZ",
	// resource library
	"Popular", "New",
	// services landing
	"Portfolio", "BusinessNeeds", "ITNeeds", "MidsizeEnterprises",
	// software evaluation
	"ProdName", "OpEnv", "Search",
	// Solutions landing
	"BusinessNeed", "Industry", "PAppNW", 
	// Solutions subtopic
	"Products", "Services", "Partners"
	);
for (var i=0; i<tabNames.length; ++i)
	eval("show"+tabNames[i]+" = function() { return displayTab(document.getElementById('tab"+tabNames[i]+"')); }");;

