(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)})}});(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")}})})();jQuery.ui||(function(c){var i=c.fn.remove,d=c.browser.mozilla&&(parseFloat(c.browser.version)<1.9);c.ui={version:"1.7.2",plugin:{add:function(k,l,n){var m=c.ui[k].prototype;for(var j in n){m.plugins[j]=m.plugins[j]||[];m.plugins[j].push([l,n[j]])}},call:function(j,l,k){var n=j.plugins[l];if(!n||!j.element[0].parentNode){return}for(var m=0;m<n.length;m++){if(j.options[n[m][0]]){n[m][1].apply(j.element,k)}}}},contains:function(k,j){return document.compareDocumentPosition?k.compareDocumentPosition(j)&16:k!==j&&k.contains(j)},hasScroll:function(m,k){if(c(m).css("overflow")=="hidden"){return false}var j=(k&&k=="left")?"scrollLeft":"scrollTop",l=false;if(m[j]>0){return true}m[j]=1;l=(m[j]>0);m[j]=0;return l},isOverAxis:function(k,j,l){return(k>j)&&(k<(j+l))},isOver:function(o,k,n,m,j,l){return c.ui.isOverAxis(o,n,j)&&c.ui.isOverAxis(k,m,l)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(d){var f=c.attr,e=c.fn.removeAttr,h="http://www.w3.org/2005/07/aaa",a=/^aria-/,b=/^wairole:/;c.attr=function(k,j,l){var m=l!==undefined;return(j=="role"?(m?f.call(this,k,j,"wairole:"+l):(f.apply(this,arguments)||"").replace(b,"")):(a.test(j)?(m?k.setAttributeNS(h,j.replace(a,"aaa:"),l):f.call(this,k,j.replace(a,"aaa:"))):f.apply(this,arguments)))};c.fn.removeAttr=function(j){return(a.test(j)?this.each(function(){this.removeAttributeNS(h,j.replace(a,""))}):e.call(this,j))}}c.fn.extend({remove:function(){c("*",this).add(this).each(function(){c(this).triggerHandler("remove")});return i.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var j;if((c.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){j=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(c.curCSS(this,"position",1))&&(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}else{j=this.parents().filter(function(){return(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!j.length?c(document):j}});c.extend(c.expr[":"],{data:function(l,k,j){return!!c.data(l,j[3])},focusable:function(k){var l=k.nodeName.toLowerCase(),j=c.attr(k,"tabindex");return(/input|select|textarea|button|object/.test(l)?!k.disabled:"a"==l||"area"==l?k.href||!isNaN(j):!isNaN(j))&&!c(k)["area"==l?"parents":"closest"](":hidden").length},tabbable:function(k){var j=c.attr(k,"tabindex");return(isNaN(j)||j>=0)&&c(k).is(":focusable")}});function g(m,n,o,l){function k(q){var p=c[m][n][q]||[];return(typeof p=="string"?p.split(/,?\s+/):p)}var j=k("getter");if(l.length==1&&typeof l[0]=="string"){j=j.concat(k("getterSetter"))}return(c.inArray(o,j)!=-1)}c.widget=function(k,j){var l=k.split(".")[0];k=k.split(".")[1];c.fn[k]=function(p){var n=(typeof p=="string"),o=Array.prototype.slice.call(arguments,1);if(n&&p.substring(0,1)=="_"){return this}if(n&&g(l,k,p,o)){var m=c.data(this[0],k);return(m?m[p].apply(m,o):undefined)}return this.each(function(){var q=c.data(this,k);(!q&&!n&&c.data(this,k,new c[l][k](this,p))._init());(q&&n&&c.isFunction(q[p])&&q[p].apply(q,o))})};c[l]=c[l]||{};c[l][k]=function(o,n){var m=this;this.namespace=l;this.widgetName=k;this.widgetEventPrefix=c[l][k].eventPrefix||k;this.widgetBaseClass=l+"-"+k;this.options=c.extend({},c.widget.defaults,c[l][k].defaults,c.metadata&&c.metadata.get(o)[k],n);this.element=c(o).bind("setData."+k,function(q,p,r){if(q.target==o){return m._setData(p,r)}}).bind("getData."+k,function(q,p){if(q.target==o){return m._getData(p)}}).bind("remove",function(){return m.destroy()})};c[l][k].prototype=c.extend({},c.widget.prototype,j);c[l][k].getterSetter="option"};c.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(l,m){var k=l,j=this;if(typeof l=="string"){if(m===undefined){return this._getData(l)}k={};k[l]=m}c.each(k,function(n,o){j._setData(n,o)})},_getData:function(j){return this.options[j]},_setData:function(j,k){this.options[j]=k;if(j=="disabled"){this.element[k?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",k)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(l,m,n){var p=this.options[l],j=(l==this.widgetEventPrefix?l:this.widgetEventPrefix+l);m=c.Event(m);m.type=j;if(m.originalEvent){for(var k=c.event.props.length,o;k;){o=c.event.props[--k];m[o]=m.originalEvent[o]}}this.element.trigger(m,n);return!(c.isFunction(p)&&p.call(this.element[0],m,n)===false||m.isDefaultPrevented())}};c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var j=this;this.element.bind("mousedown."+this.widgetName,function(k){return j._mouseDown(k)}).bind("click."+this.widgetName,function(k){if(j._preventClickEvent){j._preventClickEvent=false;k.stopImmediatePropagation();return false}});if(c.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(c.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(l){l.originalEvent=l.originalEvent||{};if(l.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(l));this._mouseDownEvent=l;var k=this,m=(l.which==1),j=(typeof this.options.cancel=="string"?c(l.target).parents().add(l.target).filter(this.options.cancel).length:false);if(!m||j||!this._mouseCapture(l)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){k.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(l)&&this._mouseDelayMet(l)){this._mouseStarted=(this._mouseStart(l)!==false);if(!this._mouseStarted){l.preventDefault();return true}}this._mouseMoveDelegate=function(n){return k._mouseMove(n)};this._mouseUpDelegate=function(n){return k._mouseUp(n)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(c.browser.safari||l.preventDefault());l.originalEvent.mouseHandled=true;return true},_mouseMove:function(j){if(c.browser.msie&&!j.button){return this._mouseUp(j)}if(this._mouseStarted){this._mouseDrag(j);return j.preventDefault()}if(this._mouseDistanceMet(j)&&this._mouseDelayMet(j)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,j)!==false);(this._mouseStarted?this._mouseDrag(j):this._mouseUp(j))}return!this._mouseStarted},_mouseUp:function(j){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(j.target==this._mouseDownEvent.target);this._mouseStop(j)}return false},_mouseDistanceMet:function(j){return(Math.max(Math.abs(this._mouseDownEvent.pageX-j.pageX),Math.abs(this._mouseDownEvent.pageY-j.pageY))>=this.options.distance)},_mouseDelayMet:function(j){return this.mouseDelayMet},_mouseStart:function(j){},_mouseDrag:function(j){},_mouseStop:function(j){},_mouseCapture:function(j){return true}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);;(function(a){a.widget("ui.accordion",{_init:function(){var d=this.options,b=this;this.running=0;if(d.collapsible==a.ui.accordion.defaults.collapsible&&d.alwaysOpen!=a.ui.accordion.defaults.alwaysOpen){d.collapsible=!d.alwaysOpen}if(d.navigation){var c=this.element.find("a").filter(d.navigationFilter);if(c.length){if(c.filter(d.header).length){this.active=c}else{this.active=c.parent().parent().prev();c.addClass("ui-accordion-content-active")}}}this.element.addClass("ui-accordion ui-widget ui-helper-reset");if(this.element[0].nodeName=="UL"){this.element.children("li").addClass("ui-accordion-li-fix")}this.headers=this.element.find(d.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){a(this).removeClass("ui-state-focus")});this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");this.active=this._findActive(this.active||d.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");this.active.next().addClass("ui-accordion-content-active");a("<span/>").addClass("ui-icon "+d.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(d.icons.header).toggleClass(d.icons.headerSelected);if(a.browser.msie){this.element.find("a").css("zoom","1")}this.resize();this.element.attr("role","tablist");this.headers.attr("role","tab").bind("keydown",function(e){return b._keydown(e)}).next().attr("role","tabpanel");this.headers.not(this.active||"").attr("aria-expanded","false").attr("tabIndex","-1").next().hide();if(!this.active.length){this.headers.eq(0).attr("tabIndex","0")}else{this.active.attr("aria-expanded","true").attr("tabIndex","0")}if(!a.browser.safari){this.headers.find("a").attr("tabIndex","-1")}if(d.event){this.headers.bind((d.event)+".accordion",function(e){return b._clickHandler.call(b,e,this)})}},destroy:function(){var c=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role").unbind(".accordion").removeData("accordion");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabindex");this.headers.find("a").removeAttr("tabindex");this.headers.children(".ui-icon").remove();var b=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active");if(c.autoHeight||c.fillHeight){b.css("height","")}},_setData:function(b,c){if(b=="alwaysOpen"){b="collapsible";c=!c}a.widget.prototype._setData.apply(this,arguments)},_keydown:function(e){var g=this.options,f=a.ui.keyCode;if(g.disabled||e.altKey||e.ctrlKey){return}var d=this.headers.length;var b=this.headers.index(e.target);var c=false;switch(e.keyCode){case f.RIGHT:case f.DOWN:c=this.headers[(b+1)%d];break;case f.LEFT:case f.UP:c=this.headers[(b-1+d)%d];break;case f.SPACE:case f.ENTER:return this._clickHandler({target:e.target},e.target)}if(c){a(e.target).attr("tabIndex","-1");a(c).attr("tabIndex","0");c.focus();return false}return true},resize:function(){var e=this.options,d;if(e.fillSpace){if(a.browser.msie){var b=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}d=this.element.parent().height();if(a.browser.msie){this.element.parent().css("overflow",b)}this.headers.each(function(){d-=a(this).outerHeight()});var c=0;this.headers.next().each(function(){c=Math.max(c,a(this).innerHeight()-a(this).height())}).height(Math.max(0,d-c)).css("overflow","auto")}else{if(e.autoHeight){d=0;this.headers.next().each(function(){d=Math.max(d,a(this).outerHeight())}).height(d)}}},activate:function(b){var c=this._findActive(b)[0];this._clickHandler({target:c},c)},_findActive:function(b){return b?typeof b=="number"?this.headers.filter(":eq("+b+")"):this.headers.not(this.headers.not(b)):b===false?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(b,f){var d=this.options;if(d.disabled){return false}if(!b.target&&d.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass("ui-accordion-content-active");var h=this.active.next(),e={options:d,newHeader:a([]),oldHeader:d.active,newContent:a([]),oldContent:h},c=(this.active=a([]));this._toggle(c,h,e);return false}var g=a(b.currentTarget||f);var i=g[0]==this.active[0];if(this.running||(!d.collapsible&&i)){return false}this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass("ui-accordion-content-active");if(!i){g.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").find(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected);g.next().addClass("ui-accordion-content-active")}var c=g.next(),h=this.active.next(),e={options:d,newHeader:i&&d.collapsible?a([]):g,oldHeader:this.active,newContent:i&&d.collapsible?a([]):c.find("> *"),oldContent:h.find("> *")},j=this.headers.index(this.active[0])>this.headers.index(g[0]);this.active=i?a([]):g;this._toggle(c,h,e,i,j);return false},_toggle:function(b,i,g,j,k){var d=this.options,m=this;this.toShow=b;this.toHide=i;this.data=g;var c=function(){if(!m){return}return m._completed.apply(m,arguments)};this._trigger("changestart",null,this.data);this.running=i.size()===0?b.size():i.size();if(d.animated){var f={};if(d.collapsible&&j){f={toShow:a([]),toHide:i,complete:c,down:k,autoHeight:d.autoHeight||d.fillSpace}}else{f={toShow:b,toHide:i,complete:c,down:k,autoHeight:d.autoHeight||d.fillSpace}}if(!d.proxied){d.proxied=d.animated}if(!d.proxiedDuration){d.proxiedDuration=d.duration}d.animated=a.isFunction(d.proxied)?d.proxied(f):d.proxied;d.duration=a.isFunction(d.proxiedDuration)?d.proxiedDuration(f):d.proxiedDuration;var l=a.ui.accordion.animations,e=d.duration,h=d.animated;if(!l[h]){l[h]=function(n){this.slide(n,{easing:h,duration:e||700})}}l[h](f)}else{if(d.collapsible&&j){b.toggle()}else{i.hide();b.show()}c(true)}i.prev().attr("aria-expanded","false").attr("tabIndex","-1").blur();b.prev().attr("aria-expanded","true").attr("tabIndex","0").focus()},_completed:function(b){var c=this.options;this.running=b?0:--this.running;if(this.running){return}if(c.clearStyle){this.toShow.add(this.toHide).css({height:"",overflow:""})}this._trigger("change",null,this.data)}});a.extend(a.ui.accordion,{version:"1.7.2",defaults:{active:null,alwaysOpen:true,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},animations:{slide:function(j,h){j=a.extend({easing:"swing",duration:300},j,h);if(!j.toHide.size()){j.toShow.animate({height:"show"},j);return}if(!j.toShow.size()){j.toHide.animate({height:"hide"},j);return}var c=j.toShow.css("overflow"),g,d={},f={},e=["height","paddingTop","paddingBottom"],b;var i=j.toShow;b=i[0].style.width;i.width(parseInt(i.parent().width(),10)-parseInt(i.css("paddingLeft"),10)-parseInt(i.css("paddingRight"),10)-(parseInt(i.css("borderLeftWidth"),10)||0)-(parseInt(i.css("borderRightWidth"),10)||0));a.each(e,function(k,m){f[m]="hide";var l=(""+a.css(j.toShow[0],m)).match(/^([\d+-.]+)(.*)$/);d[m]={value:l[1],unit:l[2]||"px"}});j.toShow.css({height:0,overflow:"hidden"}).show();j.toHide.filter(":hidden").each(j.complete).end().filter(":visible").animate(f,{step:function(k,l){if(l.prop=="height"){g=(l.now-l.start)/(l.end-l.start)}j.toShow[0].style[l.prop]=(g*d[l.prop].value)+d[l.prop].unit},duration:j.duration,easing:j.easing,complete:function(){if(!j.autoHeight){j.toShow.css("height","")}j.toShow.css("width",b);j.toShow.css({overflow:c});j.complete()}})},bounceslide:function(b){this.slide(b,{easing:b.down?"easeOutBounce":"swing",duration:b.down?1000:200})},easeslide:function(b){this.slide(b,{easing:"easeinout",duration:700})}}})})(jQuery);;(function(c){var b={dragStart:"start.draggable",drag:"drag.draggable",dragStop:"stop.draggable",maxHeight:"maxHeight.resizable",minHeight:"minHeight.resizable",maxWidth:"maxWidth.resizable",minWidth:"minWidth.resizable",resizeStart:"start.resizable",resize:"drag.resizable",resizeStop:"stop.resizable"},a="ui-dialog ui-widget ui-widget-content ui-corner-all ";c.widget("ui.dialog",{_init:function(){this.originalTitle=this.element.attr("title");var l=this,m=this.options,j=m.title||this.originalTitle||"&nbsp;",e=c.ui.dialog.getTitleId(this.element),k=(this.uiDialog=c("<div/>")).appendTo(document.body).hide().addClass(a+m.dialogClass).css({position:"absolute",overflow:"hidden",zIndex:m.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(n){(m.closeOnEscape&&n.keyCode&&n.keyCode==c.ui.keyCode.ESCAPE&&l.close(n))}).attr({role:"dialog","aria-labelledby":e}).mousedown(function(n){l.moveToTop(false,n)}),g=this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(k),f=(this.uiDialogTitlebar=c("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(k),i=c('<a href="#"/>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){i.addClass("ui-state-hover")},function(){i.removeClass("ui-state-hover")}).focus(function(){i.addClass("ui-state-focus")}).blur(function(){i.removeClass("ui-state-focus")}).mousedown(function(n){n.stopPropagation()}).click(function(n){l.close(n);return false}).appendTo(f),h=(this.uiDialogTitlebarCloseText=c("<span/>")).addClass("ui-icon ui-icon-closethick").text(m.closeText).appendTo(i),d=c("<span/>").addClass("ui-dialog-title").attr("id",e).html(j).prependTo(f);f.find("*").add(f).disableSelection();(m.draggable&&c.fn.draggable&&this._makeDraggable());(m.resizable&&c.fn.resizable&&this._makeResizable());this._createButtons(m.buttons);this._isOpen=false;(m.bgiframe&&c.fn.bgiframe&&k.bgiframe());(m.autoOpen&&this.open())},destroy:function(){(this.overlay&&this.overlay.destroy());this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");this.uiDialog.remove();(this.originalTitle&&this.element.attr("title",this.originalTitle))},close:function(f){var d=this;if(false===d._trigger("beforeclose",f)){return}(d.overlay&&d.overlay.destroy());d.uiDialog.unbind("keypress.ui-dialog");(d.options.hide?d.uiDialog.hide(d.options.hide,function(){d._trigger("close",f)}):d.uiDialog.hide()&&d._trigger("close",f));c.ui.dialog.overlay.resize();d._isOpen=false;if(d.options.modal){var e=0;c(".ui-dialog").each(function(){if(this!=d.uiDialog[0]){e=Math.max(e,c(this).css("z-index"))}});c.ui.dialog.maxZ=e}},isOpen:function(){return this._isOpen},moveToTop:function(f,e){if((this.options.modal&&!f)||(!this.options.stack&&!this.options.modal)){return this._trigger("focus",e)}if(this.options.zIndex>c.ui.dialog.maxZ){c.ui.dialog.maxZ=this.options.zIndex}(this.overlay&&this.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=++c.ui.dialog.maxZ));var d={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};this.uiDialog.css("z-index",++c.ui.dialog.maxZ);this.element.attr(d);this._trigger("focus",e)},open:function(){if(this._isOpen){return}var e=this.options,d=this.uiDialog;this.overlay=e.modal?new c.ui.dialog.overlay(this):null;(d.next().length&&d.appendTo("body"));this._size();this._position(e.position);d.show(e.show);this.moveToTop(true);(e.modal&&d.bind("keypress.ui-dialog",function(h){if(h.keyCode!=c.ui.keyCode.TAB){return}var g=c(":tabbable",this),i=g.filter(":first")[0],f=g.filter(":last")[0];if(h.target==f&&!h.shiftKey){setTimeout(function(){i.focus()},1)}else{if(h.target==i&&h.shiftKey){setTimeout(function(){f.focus()},1)}}}));c([]).add(d.find(".ui-dialog-content :tabbable:first")).add(d.find(".ui-dialog-buttonpane :tabbable:first")).add(d).filter(":first").focus();this._trigger("open");this._isOpen=true},_createButtons:function(g){var f=this,d=false,e=c("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");this.uiDialog.find(".ui-dialog-buttonpane").remove();(typeof g=="object"&&g!==null&&c.each(g,function(){return!(d=true)}));if(d){c.each(g,function(h,i){c('<button type="button"></button>').addClass("ui-state-default ui-corner-all").text(h).click(function(){i.apply(f.element[0],arguments)}).hover(function(){c(this).addClass("ui-state-hover")},function(){c(this).removeClass("ui-state-hover")}).focus(function(){c(this).addClass("ui-state-focus")}).blur(function(){c(this).removeClass("ui-state-focus")}).appendTo(e)});e.appendTo(this.uiDialog)}},_makeDraggable:function(){var d=this,f=this.options,e;this.uiDialog.draggable({cancel:".ui-dialog-content",handle:".ui-dialog-titlebar",containment:"document",start:function(){e=f.height;c(this).height(c(this).height()).addClass("ui-dialog-dragging");(f.dragStart&&f.dragStart.apply(d.element[0],arguments))},drag:function(){(f.drag&&f.drag.apply(d.element[0],arguments))},stop:function(){c(this).removeClass("ui-dialog-dragging").height(e);(f.dragStop&&f.dragStop.apply(d.element[0],arguments));c.ui.dialog.overlay.resize()}})},_makeResizable:function(g){g=(g===undefined?this.options.resizable:g);var d=this,f=this.options,e=typeof g=="string"?g:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",alsoResize:this.element,maxWidth:f.maxWidth,maxHeight:f.maxHeight,minWidth:f.minWidth,minHeight:f.minHeight,start:function(){c(this).addClass("ui-dialog-resizing");(f.resizeStart&&f.resizeStart.apply(d.element[0],arguments))},resize:function(){(f.resize&&f.resize.apply(d.element[0],arguments))},handles:e,stop:function(){c(this).removeClass("ui-dialog-resizing");f.height=c(this).height();f.width=c(this).width();(f.resizeStop&&f.resizeStop.apply(d.element[0],arguments));c.ui.dialog.overlay.resize()}}).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_position:function(i){var e=c(window),f=c(document),g=f.scrollTop(),d=f.scrollLeft(),h=g;if(c.inArray(i,["center","top","right","bottom","left"])>=0){i=[i=="right"||i=="left"?i:"center",i=="top"||i=="bottom"?i:"middle"]}if(i.constructor!=Array){i=["center","middle"]}if(i[0].constructor==Number){d+=i[0]}else{switch(i[0]){case"left":d+=0;break;case"right":d+=e.width()-this.uiDialog.outerWidth();break;default:case"center":d+=(e.width()-this.uiDialog.outerWidth())/2}}if(i[1].constructor==Number){g+=i[1]}else{switch(i[1]){case"top":g+=0;break;case"bottom":g+=e.height()-this.uiDialog.outerHeight();break;default:case"middle":g+=(e.height()-this.uiDialog.outerHeight())/2}}g=Math.max(g,h);this.uiDialog.css({top:g,left:d})},_setData:function(e,f){(b[e]&&this.uiDialog.data(b[e],f));switch(e){case"buttons":this._createButtons(f);break;case"closeText":this.uiDialogTitlebarCloseText.text(f);break;case"dialogClass":this.uiDialog.removeClass(this.options.dialogClass).addClass(a+f);break;case"draggable":(f?this._makeDraggable():this.uiDialog.draggable("destroy"));break;case"height":this.uiDialog.height(f);break;case"position":this._position(f);break;case"resizable":var d=this.uiDialog,g=this.uiDialog.is(":data(resizable)");(g&&!f&&d.resizable("destroy"));(g&&typeof f=="string"&&d.resizable("option","handles",f));(g||this._makeResizable(f));break;case"title":c(".ui-dialog-title",this.uiDialogTitlebar).html(f||"&nbsp;");break;case"width":this.uiDialog.width(f);break}c.widget.prototype._setData.apply(this,arguments)},_size:function(){var e=this.options;this.element.css({height:0,minHeight:0,width:"auto"});var d=this.uiDialog.css({height:"auto",width:e.width}).height();this.element.css({minHeight:Math.max(e.minHeight-d,0),height:e.height=="auto"?"auto":Math.max(e.height-d,0)})}});c.extend(c.ui.dialog,{version:"1.7.2",defaults:{autoOpen:true,bgiframe:false,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:"center",resizable:true,show:null,stack:true,title:"",width:300,zIndex:1000},getter:"isOpen",uuid:0,maxZ:0,getTitleId:function(d){return"ui-dialog-title-"+(d.attr("id")||++this.uuid)},overlay:function(d){this.$el=c.ui.dialog.overlay.create(d)}});c.extend(c.ui.dialog.overlay,{instances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(d){return d+".dialog-overlay"}).join(" "),create:function(e){if(this.instances.length===0){setTimeout(function(){if(c.ui.dialog.overlay.instances.length){c(document).bind(c.ui.dialog.overlay.events,function(f){var g=c(f.target).parents(".ui-dialog").css("zIndex")||0;return(g>c.ui.dialog.overlay.maxZ)})}},1);c(document).bind("keydown.dialog-overlay",function(f){(e.options.closeOnEscape&&f.keyCode&&f.keyCode==c.ui.keyCode.ESCAPE&&e.close(f))});c(window).bind("resize.dialog-overlay",c.ui.dialog.overlay.resize)}var d=c("<div></div>").appendTo(document.body).addClass("ui-widget-overlay").css({width:this.width(),height:this.height()});(e.options.bgiframe&&c.fn.bgiframe&&d.bgiframe());this.instances.push(d);return d},destroy:function(d){this.instances.splice(c.inArray(this.instances,d),1);if(this.instances.length===0){c([document,window]).unbind(".dialog-overlay")}d.remove();var e=0;c.each(this.instances,function(){e=Math.max(e,this.css("z-index"))});this.maxZ=e},height:function(){if(c.browser.msie&&c.browser.version<7){var e=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var d=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(e<d){return c(window).height()+"px"}else{return e+"px"}}else{return c(document).height()+"px"}},width:function(){if(c.browser.msie&&c.browser.version<7){var d=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);var e=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(d<e){return c(window).width()+"px"}else{return d+"px"}}else{return c(document).width()+"px"}},resize:function(){var d=c([]);c.each(c.ui.dialog.overlay.instances,function(){d=d.add(this)});d.css({width:0,height:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.overlay.height()})}});c.extend(c.ui.dialog.overlay.prototype,{destroy:function(){c.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);;jQuery.effects||(function(d){d.effects={version:"1.7.2",save:function(g,h){for(var f=0;f<h.length;f++){if(h[f]!==null){g.data("ec.storage."+h[f],g[0].style[h[f]])}}},restore:function(g,h){for(var f=0;f<h.length;f++){if(h[f]!==null){g.css(h[f],g.data("ec.storage."+h[f]))}}},setMode:function(f,g){if(g=="toggle"){g=f.is(":hidden")?"show":"hide"}return g},getBaseline:function(g,h){var i,f;switch(g[0]){case"top":i=0;break;case"middle":i=0.5;break;case"bottom":i=1;break;default:i=g[0]/h.height}switch(g[1]){case"left":f=0;break;case"center":f=0.5;break;case"right":f=1;break;default:f=g[1]/h.width}return{x:f,y:i}},createWrapper:function(f){if(f.parent().is(".ui-effects-wrapper")){return f.parent()}var g={width:f.outerWidth(true),height:f.outerHeight(true),"float":f.css("float")};f.wrap('<div class="ui-effects-wrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');var j=f.parent();if(f.css("position")=="static"){j.css({position:"relative"});f.css({position:"relative"})}else{var i=f.css("top");if(isNaN(parseInt(i,10))){i="auto"}var h=f.css("left");if(isNaN(parseInt(h,10))){h="auto"}j.css({position:f.css("position"),top:i,left:h,zIndex:f.css("z-index")}).show();f.css({position:"relative",top:0,left:0})}j.css(g);return j},removeWrapper:function(f){if(f.parent().is(".ui-effects-wrapper")){return f.parent().replaceWith(f)}return f},setTransition:function(g,i,f,h){h=h||{};d.each(i,function(k,j){unit=g.cssUnit(j);if(unit[0]>0){h[j]=unit[0]*f+unit[1]}});return h},animateClass:function(h,i,k,j){var f=(typeof k=="function"?k:(j?j:null));var g=(typeof k=="string"?k:null);return this.each(function(){var q={};var o=d(this);var p=o.attr("style")||"";if(typeof p=="object"){p=p.cssText}if(h.toggle){o.hasClass(h.toggle)?h.remove=h.toggle:h.add=h.toggle}var l=d.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(h.add){o.addClass(h.add)}if(h.remove){o.removeClass(h.remove)}var m=d.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(h.add){o.removeClass(h.add)}if(h.remove){o.addClass(h.remove)}for(var r in m){if(typeof m[r]!="function"&&m[r]&&r.indexOf("Moz")==-1&&r.indexOf("length")==-1&&m[r]!=l[r]&&(r.match(/color/i)||(!r.match(/color/i)&&!isNaN(parseInt(m[r],10))))&&(l.position!="static"||(l.position=="static"&&!r.match(/left|top|bottom|right/)))){q[r]=m[r]}}o.animate(q,i,g,function(){if(typeof d(this).attr("style")=="object"){d(this).attr("style")["cssText"]="";d(this).attr("style")["cssText"]=p}else{d(this).attr("style",p)}if(h.add){d(this).addClass(h.add)}if(h.remove){d(this).removeClass(h.remove)}if(f){f.apply(this,arguments)}})})}};function c(g,f){var i=g[1]&&g[1].constructor==Object?g[1]:{};if(f){i.mode=f}var h=g[1]&&g[1].constructor!=Object?g[1]:(i.duration?i.duration:g[2]);h=d.fx.off?0:typeof h==="number"?h:d.fx.speeds[h]||d.fx.speeds._default;var j=i.callback||(d.isFunction(g[1])&&g[1])||(d.isFunction(g[2])&&g[2])||(d.isFunction(g[3])&&g[3]);return[g[0],i,h,j]}d.fn.extend({_show:d.fn.show,_hide:d.fn.hide,__toggle:d.fn.toggle,_addClass:d.fn.addClass,_removeClass:d.fn.removeClass,_toggleClass:d.fn.toggleClass,effect:function(g,f,h,i){return d.effects[g]?d.effects[g].call(this,{method:g,options:f||{},duration:h,callback:i}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._show.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"show"))}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._hide.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"hide"))}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))||(d.isFunction(arguments[0])||typeof arguments[0]=="boolean")){return this.__toggle.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"toggle"))}},addClass:function(g,f,i,h){return f?d.effects.animateClass.apply(this,[{add:g},f,i,h]):this._addClass(g)},removeClass:function(g,f,i,h){return f?d.effects.animateClass.apply(this,[{remove:g},f,i,h]):this._removeClass(g)},toggleClass:function(g,f,i,h){return((typeof f!=="boolean")&&f)?d.effects.animateClass.apply(this,[{toggle:g},f,i,h]):this._toggleClass(g,f)},morph:function(f,h,g,j,i){return d.effects.animateClass.apply(this,[{add:h,remove:f},g,j,i])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(f){var g=this.css(f),h=[];d.each(["em","px","%","pt"],function(j,k){if(g.indexOf(k)>0){h=[parseFloat(g),k]}});return h}});d.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(g,f){d.fx.step[f]=function(h){if(h.state==0){h.start=e(h.elem,f);h.end=b(h.end)}h.elem.style[f]="rgb("+[Math.max(Math.min(parseInt((h.pos*(h.end[0]-h.start[0]))+h.start[0],10),255),0),Math.max(Math.min(parseInt((h.pos*(h.end[1]-h.start[1]))+h.start[1],10),255),0),Math.max(Math.min(parseInt((h.pos*(h.end[2]-h.start[2]))+h.start[2],10),255),0)].join(",")+")"}});function b(g){var f;if(g&&g.constructor==Array&&g.length==3){return g}if(f=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(g)){return[parseInt(f[1],10),parseInt(f[2],10),parseInt(f[3],10)]}if(f=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(g)){return[parseFloat(f[1])*2.55,parseFloat(f[2])*2.55,parseFloat(f[3])*2.55]}if(f=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(g)){return[parseInt(f[1],16),parseInt(f[2],16),parseInt(f[3],16)]}if(f=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(g)){return[parseInt(f[1]+f[1],16),parseInt(f[2]+f[2],16),parseInt(f[3]+f[3],16)]}if(f=/rgba\(0, 0, 0, 0\)/.exec(g)){return a.transparent}return a[d.trim(g).toLowerCase()]}function e(h,f){var g;do{g=d.curCSS(h,f);if(g!=""&&g!="transparent"||d.nodeName(h,"body")){break}f="backgroundColor"}while(h=h.parentNode);return b(g)}var a={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};d.easing.jswing=d.easing.swing;d.extend(d.easing,{def:"easeOutQuad",swing:function(g,h,f,j,i){return d.easing[d.easing.def](g,h,f,j,i)},easeInQuad:function(g,h,f,j,i){return j*(h/=i)*h+f},easeOutQuad:function(g,h,f,j,i){return-j*(h/=i)*(h-2)+f},easeInOutQuad:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h+f}return-j/2*((--h)*(h-2)-1)+f},easeInCubic:function(g,h,f,j,i){return j*(h/=i)*h*h+f},easeOutCubic:function(g,h,f,j,i){return j*((h=h/i-1)*h*h+1)+f},easeInOutCubic:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h*h+f}return j/2*((h-=2)*h*h+2)+f},easeInQuart:function(g,h,f,j,i){return j*(h/=i)*h*h*h+f},easeOutQuart:function(g,h,f,j,i){return-j*((h=h/i-1)*h*h*h-1)+f},easeInOutQuart:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h*h*h+f}return-j/2*((h-=2)*h*h*h-2)+f},easeInQuint:function(g,h,f,j,i){return j*(h/=i)*h*h*h*h+f},easeOutQuint:function(g,h,f,j,i){return j*((h=h/i-1)*h*h*h*h+1)+f},easeInOutQuint:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h*h*h*h+f}return j/2*((h-=2)*h*h*h*h+2)+f},easeInSine:function(g,h,f,j,i){return-j*Math.cos(h/i*(Math.PI/2))+j+f},easeOutSine:function(g,h,f,j,i){return j*Math.sin(h/i*(Math.PI/2))+f},easeInOutSine:function(g,h,f,j,i){return-j/2*(Math.cos(Math.PI*h/i)-1)+f},easeInExpo:function(g,h,f,j,i){return(h==0)?f:j*Math.pow(2,10*(h/i-1))+f},easeOutExpo:function(g,h,f,j,i){return(h==i)?f+j:j*(-Math.pow(2,-10*h/i)+1)+f},easeInOutExpo:function(g,h,f,j,i){if(h==0){return f}if(h==i){return f+j}if((h/=i/2)<1){return j/2*Math.pow(2,10*(h-1))+f}return j/2*(-Math.pow(2,-10*--h)+2)+f},easeInCirc:function(g,h,f,j,i){return-j*(Math.sqrt(1-(h/=i)*h)-1)+f},easeOutCirc:function(g,h,f,j,i){return j*Math.sqrt(1-(h=h/i-1)*h)+f},easeInOutCirc:function(g,h,f,j,i){if((h/=i/2)<1){return-j/2*(Math.sqrt(1-h*h)-1)+f}return j/2*(Math.sqrt(1-(h-=2)*h)+1)+f},easeInElastic:function(g,i,f,m,l){var j=1.70158;var k=0;var h=m;if(i==0){return f}if((i/=l)==1){return f+m}if(!k){k=l*0.3}if(h<Math.abs(m)){h=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/h)}return-(h*Math.pow(2,10*(i-=1))*Math.sin((i*l-j)*(2*Math.PI)/k))+f},easeOutElastic:function(g,i,f,m,l){var j=1.70158;var k=0;var h=m;if(i==0){return f}if((i/=l)==1){return f+m}if(!k){k=l*0.3}if(h<Math.abs(m)){h=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/h)}return h*Math.pow(2,-10*i)*Math.sin((i*l-j)*(2*Math.PI)/k)+m+f},easeInOutElastic:function(g,i,f,m,l){var j=1.70158;var k=0;var h=m;if(i==0){return f}if((i/=l/2)==2){return f+m}if(!k){k=l*(0.3*1.5)}if(h<Math.abs(m)){h=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/h)}if(i<1){return-0.5*(h*Math.pow(2,10*(i-=1))*Math.sin((i*l-j)*(2*Math.PI)/k))+f}return h*Math.pow(2,-10*(i-=1))*Math.sin((i*l-j)*(2*Math.PI)/k)*0.5+m+f},easeInBack:function(g,h,f,k,j,i){if(i==undefined){i=1.70158}return k*(h/=j)*h*((i+1)*h-i)+f},easeOutBack:function(g,h,f,k,j,i){if(i==undefined){i=1.70158}return k*((h=h/j-1)*h*((i+1)*h+i)+1)+f},easeInOutBack:function(g,h,f,k,j,i){if(i==undefined){i=1.70158}if((h/=j/2)<1){return k/2*(h*h*(((i*=(1.525))+1)*h-i))+f}return k/2*((h-=2)*h*(((i*=(1.525))+1)*h+i)+2)+f},easeInBounce:function(g,h,f,j,i){return j-d.easing.easeOutBounce(g,i-h,0,j,i)+f},easeOutBounce:function(g,h,f,j,i){if((h/=i)<(1/2.75)){return j*(7.5625*h*h)+f}else{if(h<(2/2.75)){return j*(7.5625*(h-=(1.5/2.75))*h+0.75)+f}else{if(h<(2.5/2.75)){return j*(7.5625*(h-=(2.25/2.75))*h+0.9375)+f}else{return j*(7.5625*(h-=(2.625/2.75))*h+0.984375)+f}}}},easeInOutBounce:function(g,h,f,j,i){if(h<i/2){return d.easing.easeInBounce(g,h*2,0,j,i)*0.5+f}return d.easing.easeOutBounce(g,h*2-i,0,j,i)*0.5+j*0.5+f}})})(jQuery);;(function(a){a.effects.blind=function(b){return this.queue(function(){var d=a(this),c=["position","top","left"];var h=a.effects.setMode(d,b.options.mode||"hide");var g=b.options.direction||"vertical";a.effects.save(d,c);d.show();var j=a.effects.createWrapper(d).css({overflow:"hidden"});var e=(g=="vertical")?"height":"width";var i=(g=="vertical")?j.height():j.width();if(h=="show"){j.css(e,0)}var f={};f[e]=h=="show"?i:0;j.animate(f,b.duration,b.options.easing,function(){if(h=="hide"){d.hide()}a.effects.restore(d,c);a.effects.removeWrapper(d);if(b.callback){b.callback.apply(d[0],arguments)}d.dequeue()})})}})(jQuery);;(function(a){a.effects.bounce=function(b){return this.queue(function(){var e=a(this),l=["position","top","left"];var k=a.effects.setMode(e,b.options.mode||"effect");var n=b.options.direction||"up";var c=b.options.distance||20;var d=b.options.times||5;var g=b.duration||250;if(/show|hide/.test(k)){l.push("opacity")}a.effects.save(e,l);e.show();a.effects.createWrapper(e);var f=(n=="up"||n=="down")?"top":"left";var p=(n=="up"||n=="left")?"pos":"neg";var c=b.options.distance||(f=="top"?e.outerHeight({margin:true})/3:e.outerWidth({margin:true})/3);if(k=="show"){e.css("opacity",0).css(f,p=="pos"?-c:c)}if(k=="hide"){c=c/(d*2)}if(k!="hide"){d--}if(k=="show"){var h={opacity:1};h[f]=(p=="pos"?"+=":"-=")+c;e.animate(h,g/2,b.options.easing);c=c/2;d--}for(var j=0;j<d;j++){var o={},m={};o[f]=(p=="pos"?"-=":"+=")+c;m[f]=(p=="pos"?"+=":"-=")+c;e.animate(o,g/2,b.options.easing).animate(m,g/2,b.options.easing);c=(k=="hide")?c*2:c/2}if(k=="hide"){var h={opacity:0};h[f]=(p=="pos"?"-=":"+=")+c;e.animate(h,g/2,b.options.easing,function(){e.hide();a.effects.restore(e,l);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(this,arguments)}})}else{var o={},m={};o[f]=(p=="pos"?"-=":"+=")+c;m[f]=(p=="pos"?"+=":"-=")+c;e.animate(o,g/2,b.options.easing).animate(m,g/2,b.options.easing,function(){a.effects.restore(e,l);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(this,arguments)}})}e.queue("fx",function(){e.dequeue()});e.dequeue()})}})(jQuery);;(function(a){a.effects.clip=function(b){return this.queue(function(){var f=a(this),j=["position","top","left","height","width"];var i=a.effects.setMode(f,b.options.mode||"hide");var k=b.options.direction||"vertical";a.effects.save(f,j);f.show();var c=a.effects.createWrapper(f).css({overflow:"hidden"});var e=f[0].tagName=="IMG"?c:f;var g={size:(k=="vertical")?"height":"width",position:(k=="vertical")?"top":"left"};var d=(k=="vertical")?e.height():e.width();if(i=="show"){e.css(g.size,0);e.css(g.position,d/2)}var h={};h[g.size]=i=="show"?d:0;h[g.position]=i=="show"?0:d/2;e.animate(h,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(i=="hide"){f.hide()}a.effects.restore(f,j);a.effects.removeWrapper(f);if(b.callback){b.callback.apply(f[0],arguments)}f.dequeue()}})})}})(jQuery);;(function(a){a.effects.drop=function(b){return this.queue(function(){var e=a(this),d=["position","top","left","opacity"];var i=a.effects.setMode(e,b.options.mode||"hide");var h=b.options.direction||"left";a.effects.save(e,d);e.show();a.effects.createWrapper(e);var f=(h=="up"||h=="down")?"top":"left";var c=(h=="up"||h=="left")?"pos":"neg";var j=b.options.distance||(f=="top"?e.outerHeight({margin:true})/2:e.outerWidth({margin:true})/2);if(i=="show"){e.css("opacity",0).css(f,c=="pos"?-j:j)}var g={opacity:i=="show"?1:0};g[f]=(i=="show"?(c=="pos"?"+=":"-="):(c=="pos"?"-=":"+="))+j;e.animate(g,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(i=="hide"){e.hide()}a.effects.restore(e,d);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(this,arguments)}e.dequeue()}})})}})(jQuery);;(function(a){a.effects.explode=function(b){return this.queue(function(){var k=b.options.pieces?Math.round(Math.sqrt(b.options.pieces)):3;var e=b.options.pieces?Math.round(Math.sqrt(b.options.pieces)):3;b.options.mode=b.options.mode=="toggle"?(a(this).is(":visible")?"hide":"show"):b.options.mode;var h=a(this).show().css("visibility","hidden");var l=h.offset();l.top-=parseInt(h.css("marginTop"),10)||0;l.left-=parseInt(h.css("marginLeft"),10)||0;var g=h.outerWidth(true);var c=h.outerHeight(true);for(var f=0;f<k;f++){for(var d=0;d<e;d++){h.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-d*(g/e),top:-f*(c/k)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:g/e,height:c/k,left:l.left+d*(g/e)+(b.options.mode=="show"?(d-Math.floor(e/2))*(g/e):0),top:l.top+f*(c/k)+(b.options.mode=="show"?(f-Math.floor(k/2))*(c/k):0),opacity:b.options.mode=="show"?0:1}).animate({left:l.left+d*(g/e)+(b.options.mode=="show"?0:(d-Math.floor(e/2))*(g/e)),top:l.top+f*(c/k)+(b.options.mode=="show"?0:(f-Math.floor(k/2))*(c/k)),opacity:b.options.mode=="show"?1:0},b.duration||500)}}setTimeout(function(){b.options.mode=="show"?h.css({visibility:"visible"}):h.css({visibility:"visible"}).hide();if(b.callback){b.callback.apply(h[0])}h.dequeue();a("div.ui-effects-explode").remove()},b.duration||500)})}})(jQuery);;(function(a){a.effects.fold=function(b){return this.queue(function(){var e=a(this),k=["position","top","left"];var h=a.effects.setMode(e,b.options.mode||"hide");var o=b.options.size||15;var n=!(!b.options.horizFirst);var g=b.duration?b.duration/2:a.fx.speeds._default/2;a.effects.save(e,k);e.show();var d=a.effects.createWrapper(e).css({overflow:"hidden"});var i=((h=="show")!=n);var f=i?["width","height"]:["height","width"];var c=i?[d.width(),d.height()]:[d.height(),d.width()];var j=/([0-9]+)%/.exec(o);if(j){o=parseInt(j[1],10)/100*c[h=="hide"?0:1]}if(h=="show"){d.css(n?{height:0,width:o}:{height:o,width:0})}var m={},l={};m[f[0]]=h=="show"?c[0]:o;l[f[1]]=h=="show"?c[1]:0;d.animate(m,g,b.options.easing).animate(l,g,b.options.easing,function(){if(h=="hide"){e.hide()}a.effects.restore(e,k);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(e[0],arguments)}e.dequeue()})})}})(jQuery);;(function(a){a.effects.highlight=function(b){return this.queue(function(){var e=a(this),d=["backgroundImage","backgroundColor","opacity"];var h=a.effects.setMode(e,b.options.mode||"show");var c=b.options.color||"#ffff99";var g=e.css("backgroundColor");a.effects.save(e,d);e.show();e.css({backgroundImage:"none",backgroundColor:c});var f={backgroundColor:g};if(h=="hide"){f.opacity=0}e.animate(f,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(h=="hide"){e.hide()}a.effects.restore(e,d);if(h=="show"&&a.browser.msie){this.style.removeAttribute("filter")}if(b.callback){b.callback.apply(this,arguments)}e.dequeue()}})})}})(jQuery);;(function(a){a.effects.pulsate=function(b){return this.queue(function(){var d=a(this);var g=a.effects.setMode(d,b.options.mode||"show");var f=b.options.times||5;var e=b.duration?b.duration/2:a.fx.speeds._default/2;if(g=="hide"){f--}if(d.is(":hidden")){d.css("opacity",0);d.show();d.animate({opacity:1},e,b.options.easing);f=f-2}for(var c=0;c<f;c++){d.animate({opacity:0},e,b.options.easing).animate({opacity:1},e,b.options.easing)}if(g=="hide"){d.animate({opacity:0},e,b.options.easing,function(){d.hide();if(b.callback){b.callback.apply(this,arguments)}})}else{d.animate({opacity:0},e,b.options.easing).animate({opacity:1},e,b.options.easing,function(){if(b.callback){b.callback.apply(this,arguments)}})}d.queue("fx",function(){d.dequeue()});d.dequeue()})}})(jQuery);;(function(a){a.effects.puff=function(b){return this.queue(function(){var f=a(this);var c=a.extend(true,{},b.options);var h=a.effects.setMode(f,b.options.mode||"hide");var g=parseInt(b.options.percent,10)||150;c.fade=true;var e={height:f.height(),width:f.width()};var d=g/100;f.from=(h=="hide")?e:{height:e.height*d,width:e.width*d};c.from=f.from;c.percent=(h=="hide")?g:100;c.mode=h;f.effect("scale",c,b.duration,b.callback);f.dequeue()})};a.effects.scale=function(b){return this.queue(function(){var g=a(this);var d=a.extend(true,{},b.options);var j=a.effects.setMode(g,b.options.mode||"effect");var h=parseInt(b.options.percent,10)||(parseInt(b.options.percent,10)==0?0:(j=="hide"?0:100));var i=b.options.direction||"both";var c=b.options.origin;if(j!="effect"){d.origin=c||["middle","center"];d.restore=true}var f={height:g.height(),width:g.width()};g.from=b.options.from||(j=="show"?{height:0,width:0}:f);var e={y:i!="horizontal"?(h/100):1,x:i!="vertical"?(h/100):1};g.to={height:f.height*e.y,width:f.width*e.x};if(b.options.fade){if(j=="show"){g.from.opacity=0;g.to.opacity=1}if(j=="hide"){g.from.opacity=1;g.to.opacity=0}}d.from=g.from;d.to=g.to;d.mode=j;g.effect("size",d,b.duration,b.callback);g.dequeue()})};a.effects.size=function(b){return this.queue(function(){var c=a(this),n=["position","top","left","width","height","overflow","opacity"];var m=["position","top","left","overflow","opacity"];var j=["width","height","overflow"];var p=["fontSize"];var k=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"];var f=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"];var g=a.effects.setMode(c,b.options.mode||"effect");var i=b.options.restore||false;var e=b.options.scale||"both";var o=b.options.origin;var d={height:c.height(),width:c.width()};c.from=b.options.from||d;c.to=b.options.to||d;if(o){var h=a.effects.getBaseline(o,d);c.from.top=(d.height-c.from.height)*h.y;c.from.left=(d.width-c.from.width)*h.x;c.to.top=(d.height-c.to.height)*h.y;c.to.left=(d.width-c.to.width)*h.x}var l={from:{y:c.from.height/d.height,x:c.from.width/d.width},to:{y:c.to.height/d.height,x:c.to.width/d.width}};if(e=="box"||e=="both"){if(l.from.y!=l.to.y){n=n.concat(k);c.from=a.effects.setTransition(c,k,l.from.y,c.from);c.to=a.effects.setTransition(c,k,l.to.y,c.to)}if(l.from.x!=l.to.x){n=n.concat(f);c.from=a.effects.setTransition(c,f,l.from.x,c.from);c.to=a.effects.setTransition(c,f,l.to.x,c.to)}}if(e=="content"||e=="both"){if(l.from.y!=l.to.y){n=n.concat(p);c.from=a.effects.setTransition(c,p,l.from.y,c.from);c.to=a.effects.setTransition(c,p,l.to.y,c.to)}}a.effects.save(c,i?n:m);c.show();a.effects.createWrapper(c);c.css("overflow","hidden").css(c.from);if(e=="content"||e=="both"){k=k.concat(["marginTop","marginBottom"]).concat(p);f=f.concat(["marginLeft","marginRight"]);j=n.concat(k).concat(f);c.find("*[width]").each(function(){child=a(this);if(i){a.effects.save(child,j)}var q={height:child.height(),width:child.width()};child.from={height:q.height*l.from.y,width:q.width*l.from.x};child.to={height:q.height*l.to.y,width:q.width*l.to.x};if(l.from.y!=l.to.y){child.from=a.effects.setTransition(child,k,l.from.y,child.from);child.to=a.effects.setTransition(child,k,l.to.y,child.to)}if(l.from.x!=l.to.x){child.from=a.effects.setTransition(child,f,l.from.x,child.from);child.to=a.effects.setTransition(child,f,l.to.x,child.to)}child.css(child.from);child.animate(child.to,b.duration,b.options.easing,function(){if(i){a.effects.restore(child,j)}})})}c.animate(c.to,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(g=="hide"){c.hide()}a.effects.restore(c,i?n:m);a.effects.removeWrapper(c);if(b.callback){b.callback.apply(this,arguments)}c.dequeue()}})})}})(jQuery);;(function(a){a.effects.shake=function(b){return this.queue(function(){var e=a(this),l=["position","top","left"];var k=a.effects.setMode(e,b.options.mode||"effect");var n=b.options.direction||"left";var c=b.options.distance||20;var d=b.options.times||3;var g=b.duration||b.options.duration||140;a.effects.save(e,l);e.show();a.effects.createWrapper(e);var f=(n=="up"||n=="down")?"top":"left";var p=(n=="up"||n=="left")?"pos":"neg";var h={},o={},m={};h[f]=(p=="pos"?"-=":"+=")+c;o[f]=(p=="pos"?"+=":"-=")+c*2;m[f]=(p=="pos"?"-=":"+=")+c*2;e.animate(h,g,b.options.easing);for(var j=1;j<d;j++){e.animate(o,g,b.options.easing).animate(m,g,b.options.easing)}e.animate(o,g,b.options.easing).animate(h,g/2,b.options.easing,function(){a.effects.restore(e,l);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(this,arguments)}});e.queue("fx",function(){e.dequeue()});e.dequeue()})}})(jQuery);;(function(a){a.effects.slide=function(b){return this.queue(function(){var e=a(this),d=["position","top","left"];var i=a.effects.setMode(e,b.options.mode||"show");var h=b.options.direction||"left";a.effects.save(e,d);e.show();a.effects.createWrapper(e).css({overflow:"hidden"});var f=(h=="up"||h=="down")?"top":"left";var c=(h=="up"||h=="left")?"pos":"neg";var j=b.options.distance||(f=="top"?e.outerHeight({margin:true}):e.outerWidth({margin:true}));if(i=="show"){e.css(f,c=="pos"?-j:j)}var g={};g[f]=(i=="show"?(c=="pos"?"+=":"-="):(c=="pos"?"-=":"+="))+j;e.animate(g,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(i=="hide"){e.hide()}a.effects.restore(e,d);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(this,arguments)}e.dequeue()}})})}})(jQuery);;(function(a){a.effects.transfer=function(b){return this.queue(function(){var f=a(this),h=a(b.options.to),e=h.offset(),g={top:e.top,left:e.left,height:h.innerHeight(),width:h.innerWidth()},d=f.offset(),c=a('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(b.options.className).css({top:d.top,left:d.left,height:f.innerHeight(),width:f.innerWidth(),position:"absolute"}).animate(g,b.duration,b.options.easing,function(){c.remove();(b.callback&&b.callback.apply(f[0],arguments));f.dequeue()})})}})(jQuery);;jQuery.noConflict();function __loadCompatLayer(w){w.Debug=function(){};w.Debug._fail=function(message){throw new Error(message);};w.Debug.writeln=function(text){if(window.console){if(window.console.debug){window.console.debug(text);return;}else if(window.console.log){window.console.log(text);return;}}else if(window.opera&&window.opera.postError){window.opera.postError(text);return;}};w.__getNonTextNode=function(node){try{while(node&&(node.nodeType!=1)){node=node.parentNode;}}catch(ex){node=null;}return node;};w.__getLocation=function(e){var loc={x:0,y:0};while(e){loc.x+=e.offsetLeft;loc.y+=e.offsetTop;e=e.offsetParent;}return loc;};RegExp._cacheable=true;String._quoteSkipTest=true;w.navigate=function(url){window.setTimeout('window.location = "'+url+'";',0);};var attachEventProxy=function(eventName,eventHandler){eventHandler._mozillaEventHandler=function(e){window.event=e;eventHandler();if(!e.avoidReturn){return e.returnValue;}};this.addEventListener(eventName.slice(2),eventHandler._mozillaEventHandler,false);};var detachEventProxy=function(eventName,eventHandler){if(eventHandler._mozillaEventHandler){var mozillaEventHandler=eventHandler._mozillaEventHandler;delete eventHandler._mozillaEventHandler;this.removeEventListener(eventName.slice(2),mozillaEventHandler,false);}};w.attachEvent=attachEventProxy;w.detachEvent=detachEventProxy;w.HTMLDocument.prototype.attachEvent=attachEventProxy;w.HTMLDocument.prototype.detachEvent=detachEventProxy;w.HTMLElement.prototype.attachEvent=attachEventProxy;w.HTMLElement.prototype.detachEvent=detachEventProxy;w.Event.prototype.__defineGetter__('srcElement',function(){return __getNonTextNode(this.target)||this.currentTarget;});w.Event.prototype.__defineGetter__('cancelBubble',function(){return this._bubblingCanceled||false;});w.Event.prototype.__defineSetter__('cancelBubble',function(v){if(v){this._bubblingCanceled=true;this.stopPropagation();}});w.Event.prototype.__defineGetter__('returnValue',function(){return!this._cancelDefault;});w.Event.prototype.__defineSetter__('returnValue',function(v){if(!v){this._cancelDefault=true;this.preventDefault();}});w.Event.prototype.__defineGetter__('fromElement',function(){var n;if(this.type=='mouseover'){n=this.relatedTarget;}else if(this.type=='mouseout'){n=this.target;}return __getNonTextNode(n);});w.Event.prototype.__defineGetter__('toElement',function(){var n;if(this.type=='mouseout'){n=this.relatedTarget;}else if(this.type=='mouseover'){n=this.target;}return __getNonTextNode(n);});w.Event.prototype.__defineGetter__('button',function(){return(this.which==1)?1:(this.which==3)?2:0});w.Event.prototype.__defineGetter__('offsetX',function(){return window.pageXOffset+this.clientX-__getLocation(this.srcElement).x;});w.Event.prototype.__defineGetter__('offsetY',function(){return window.pageYOffset+this.clientY-__getLocation(this.srcElement).y;});w.HTMLElement.prototype.__defineGetter__('parentElement',function(){return this.parentNode;});w.HTMLElement.prototype.__defineGetter__('children',function(){var children=[];var childCount=this.childNodes.length;for(var i=0;i<childCount;i++){var childNode=this.childNodes[i];if(childNode.nodeType==1){children.push(childNode);}}return children;});w.HTMLElement.prototype.__defineGetter__('innerText',function(){try{return this.textContent}catch(ex){var text='';for(var i=0;i<this.childNodes.length;i++){if(this.childNodes[i].nodeType==3){text+=this.childNodes[i].textContent;}}return str;}});w.HTMLElement.prototype.__defineSetter__('innerText',function(v){var textNode=document.createTextNode(v);this.innerHTML='';this.appendChild(textNode);});w.HTMLElement.prototype.__defineGetter__('currentStyle',function(){return window.getComputedStyle(this,null);});w.HTMLElement.prototype.__defineGetter__('runtimeStyle',function(){return window.getOverrideStyle(this,null);});w.HTMLElement.prototype.removeNode=function(b){return this.parentNode.removeChild(this)};w.HTMLElement.prototype.contains=function(el){while(el!=null&&el!=this){el=el.parentNode;}return(el!=null)};w.HTMLStyleElement.prototype.__defineGetter__('styleSheet',function(){return this.sheet;});w.CSSStyleSheet.prototype.__defineGetter__('rules',function(){return this.cssRules;});w.CSSStyleSheet.prototype.addRule=function(selector,style,index){this.insertRule(selector+'{'+style+'}',index);};w.CSSStyleSheet.prototype.removeRule=function(index){this.deleteRule(index);};w.CSSStyleDeclaration.prototype.__defineGetter__('styleFloat',function(){return this.cssFloat;});w.CSSStyleDeclaration.prototype.__defineSetter__('styleFloat',function(v){this.cssFloat=v;});DocumentFragment.prototype.getElementById=function(id){var nodeQueue=[];var childNodes=this.childNodes;var node;var c;for(c=0;c<childNodes.length;c++){node=childNodes[c];if(node.nodeType==1){nodeQueue.push(node);}}while(nodeQueue.length){node=nodeQueue.dequeue();if(node.id==id){return node;}childNodes=node.childNodes;if(childNodes.length!=0){for(c=0;c<childNodes.length;c++){node=childNodes[c];if(node.nodeType==1){nodeQueue.push(node);}}}}return null;};DocumentFragment.prototype.getElementsByTagName=function(tagName){var elements=[];var nodeQueue=[];var childNodes=this.childNodes;var node;var c;for(c=0;c<childNodes.length;c++){node=childNodes[c];if(node.nodeType==1){nodeQueue.push(node);}}while(nodeQueue.length){node=nodeQueue.dequeue();if(node.tagName==tagName){elements.add(node);}childNodes=node.childNodes;if(childNodes.length!=0){for(c=0;c<childNodes.length;c++){node=childNodes[c];if(node.nodeType==1){nodeQueue.push(node);}}}}return elements;};DocumentFragment.prototype.createElement=function(tagName){return document.createElement(tagName);};var selectNodes=function(doc,path,contextNode){contextNode=contextNode?contextNode:doc;var xpath=new XPathEvaluator();var result=xpath.evaluate(path,contextNode,doc.createNSResolver(doc.documentElement),XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);var nodeList=new Array(result.snapshotLength);for(var i=0;i<result.snapshotLength;i++){nodeList[i]=result.snapshotItem(i);}return nodeList;};var selectSingleNode=function(doc,path,contextNode){path+='[1]';var nodes=selectNodes(doc,path,contextNode);if(nodes.length!=0){for(var i=0;i<nodes.length;i++){if(nodes[i]){return nodes[i];}}}return null;};w.XMLDocument.prototype.selectNodes=function(path,contextNode){return selectNodes(this,path,contextNode);};w.XMLDocument.prototype.selectSingleNode=function(path,contextNode){return selectSingleNode(this,path,contextNode);};w.XMLDocument.prototype.transformNode=function(xsl){var xslProcessor=new XSLTProcessor();xslProcessor.importStylesheet(xsl);var ownerDocument=document.implementation.createDocument("","",null);var transformedDoc=xslProcessor.transformToDocument(this);return transformedDoc.xml;};Node.prototype.selectNodes=function(path){var doc=this.ownerDocument;return doc.selectNodes(path,this);};Node.prototype.selectSingleNode=function(path){var doc=this.ownerDocument;return doc.selectSingleNode(path,this);};Node.prototype.__defineGetter__('baseName',function(){return this.localName;});Node.prototype.__defineGetter__('text',function(){return this.textContent;});Node.prototype.__defineSetter__('text',function(value){this.textContent=value;});Node.prototype.__defineGetter__('xml',function(){return(new XMLSerializer()).serializeToString(this);});}
function __supportsCompatLayer(ua){return(ua.indexOf('Gecko')>=0)||(ua.indexOf('AppleWebKit')>=0)||(ua.indexOf('Opera')>=0);}
if(__supportsCompatLayer(window.navigator.userAgent)){try{__loadCompatLayer(window);}catch(e){}}
function isUndefined(o){return(o===undefined);}
function isNull(o){return(o===null);}
function isNullOrUndefined(o){return(o===null)||(o===undefined);}
window.__scriptsharp='0.5.1.0';function $(id){return document.getElementById(id);}
document.getElementsBySelector=function(cssSelector,root){var all=root?root.getElementsByTagName('*'):document.getElementsByTagName('*');var matches=[];var styleSheet=document.getElementsBySelector.styleSheet;if(!styleSheet){var styleSheetNode=document.createElement('style');styleSheetNode.type='text/css';document.getElementsByTagName('head')[0].appendChild(styleSheetNode);styleSheet=styleSheetNode.styleSheet||styleSheetNode.sheet;document.getElementsBySelector.styleSheet=styleSheet;}if(window.navigator.userAgent.indexOf('MSIE')>=0){styleSheet.addRule(cssSelector,'ssCssMatch:true',0);for(var i=all.length-1;i>=0;i--){var element=all[i];if(element.currentStyle.ssCssMatch){matches[matches.length]=element;}}styleSheet.removeRule(0);}else{var matchValue=document.getElementsBySelector.matchValue;if(!matchValue){matchValue=(window.navigator.userAgent.indexOf('Opera')>=0)?'"ssCssMatch"':'ssCssMatch 1';document.getElementsBySelector.matchValue=matchValue;}styleSheet.insertRule(cssSelector+' { counter-increment: ssCssMatch }',0);var docView=document.defaultView;for(var i=all.length-1;i>=0;i--){var element=all[i];if(docView.getComputedStyle(element,null).counterIncrement===matchValue){matches[matches.length]=element;}}styleSheet.deleteRule(0);}if(matches.length>1){matches.reverse();}return matches;}
Object.__typeName='Object';Object.__baseType=null;Object.parse=function(s){return eval(s);}
Object.getKeyCount=function(d){var count=0;for(var n in d){count++;}return count;}
Object.clearKeys=function(d){for(var n in d){delete d[n];}}
Object.keyExists=function(d,key){return d[key]!==undefined;}
Function.parse=function(s){if(!Function._parseCache){Function._parseCache={};}var fn=Function._parseCache[s];if(!fn){try{eval('fn = '+s);if(typeof(fn)!='function'){fn=null;}else{Function._parseCache[s]=fn;}}catch(ex){}}return fn;}
Function.prototype.invoke=function(){this.apply(null,arguments);}
Boolean.__typeName='Boolean';Boolean.parse=function(s){return(s.toLowerCase()=='true');}
Number.__typeName='Number';Number.parse=function(s){if(!s||!s.length){return 0;}if((s.indexOf('.')>=0)||(s.indexOf('e')>=0)||s.endsWith('f')||s.endsWith('F')){return parseFloat(s);}return parseInt(s);}
Number.prototype.format=function(format,useLocale){if(isNullOrUndefined(format)||(format.length==0)||(format=='i')){if(useLocale){return this.toLocaleString();}else{return this.toString();}}return this._netFormat(format,useLocale);}
Number._commaFormat=function(number,groups,decimal,comma){var decimalPart=null;var decimalIndex=number.indexOf(decimal);if(decimalIndex>0){decimalPart=number.substr(decimalIndex);number=number.substr(0,decimalIndex);}var negative=number.startsWith('-');if(negative){number=number.substr(1);}var groupIndex=0;var groupSize=groups[groupIndex];if(number.length<groupSize){return decimalPart?number+decimalPart:number;}var index=number.length;var s='';var done=false;while(!done){var length=groupSize;var startIndex=index-length;if(startIndex<0){groupSize+=startIndex;length+=startIndex;startIndex=0;done=true;}if(!length){break;}var part=number.substr(startIndex,length);if(s.length){s=part+comma+s;}else{s=part;}index-=length;if(groupIndex<groups.length-1){groupIndex++;groupSize=groups[groupIndex];}}if(negative){s='-'+s;}return decimalPart?s+decimalPart:s;}
Number.prototype._netFormat=function(format,useLocale){var nf=useLocale?CultureInfo.Current.numberFormat:CultureInfo.Neutral.numberFormat;var s='';var precision=-1;if(format.length>1){precision=parseInt(format.substr(1));}var fs=format.charAt(0);switch(fs){case'd':case'D':s=parseInt(Math.abs(this)).toString();if(precision!=-1){s=s.padLeft(precision,'0');}if(this<0){s='-'+s;}break;case'x':case'X':s=parseInt(Math.abs(this)).toString(16);if(fs=='X'){s=s.toUpperCase();}if(precision!=-1){s=s.padLeft(precision,'0');}break;case'e':case'E':if(precision==-1){s=this.toExponential();}else{s=this.toExponential(precision);}if(fs=='E'){s=s.toUpperCase();}break;case'f':case'F':case'n':case'N':if(precision==-1){precision=nf.numberDecimalDigits;}s=this.toFixed(precision).toString();if(precision&&(nf.numberDecimalSeparator!='.')){var index=s.indexOf('.');s=s.substr(0,index)+nf.numberDecimalSeparator+s.substr(index+1);}if((fs=='n')||(fs=='N')){s=Number._commaFormat(s,nf.numberGroupSizes,nf.numberDecimalSeparator,nf.numberGroupSeparator);}break;case'c':case'C':if(precision==-1){precision=nf.currencyDecimalDigits;}s=Math.abs(this).toFixed(precision).toString();if(precision&&(nf.currencyDecimalSeparator!='.')){var index=s.indexOf('.');s=s.substr(0,index)+nf.currencyDecimalSeparator+s.substr(index+1);}s=Number._commaFormat(s,nf.currencyGroupSizes,nf.currencyDecimalSeparator,nf.currencyGroupSeparator);if(this<0){s=String.format(nf.currencyNegativePattern,s);}else{s=String.format(nf.currencyPositivePattern,s);}break;case'p':case'P':if(precision==-1){precision=nf.percentDecimalDigits;}s=(Math.abs(this)*100.0).toFixed(precision).toString();if(precision&&(nf.percentDecimalSeparator!='.')){var index=s.indexOf('.');s=s.substr(0,index)+nf.percentDecimalSeparator+s.substr(index+1);}s=Number._commaFormat(s,nf.percentGroupSizes,nf.percentDecimalSeparator,nf.percentGroupSeparator);if(this<0){s=String.format(nf.percentNegativePattern,s);}else{s=String.format(nf.percentPositivePattern,s);}break;}return s;}
Math.truncate=function(n){return(n>=0)?Math.floor(n):Math.ceil(n);}
String.__typeName='String';String.Empty='';String.compare=function(s1,s2,ignoreCase){if(ignoreCase){if(s1){s1=s1.toUpperCase();}if(s2){s2=s2.toUpperCase();}}s1=s1||'';s2=s2||'';if(s1==s2){return 0;}if(s1<s2){return-1;}return 1;}
String.prototype.compareTo=function(s,ignoreCase){return String.compare(this,s,ignoreCase);}
String.prototype.endsWith=function(suffix){if(!suffix.length){return true;}if(suffix.length>this.length){return false;}return(this.substr(this.length-suffix.length)==suffix);}
String.equals=function(s1,s2,ignoreCase){return String.compare(s1,s2,ignoreCase)==0;}
String._format=function(format,values,useLocale){if(!String._formatRE){String._formatRE=/(\{[^\}^\{]+\})/g;}return format.replace(String._formatRE,function(str,m){var index=parseInt(m.substr(1));var value=values[index+1];if(isNullOrUndefined(value)){return'';}if(value.format){var formatSpec=null;var formatIndex=m.indexOf(':');if(formatIndex>0){formatSpec=m.substring(formatIndex+1,m.length-1);}return value.format.call(value,formatSpec,useLocale);}else{if(useLocale){return value.toLocaleString();}return value.toString();}});}
String.format=function(format){return String._format(format,arguments,false);}
String.fromChar=function(ch,count){var s=ch;for(var i=1;i<count;i++){s+=ch;}return s;}
String.prototype.htmlDecode=function(){if(!String._htmlDecRE){String._htmlDecMap={'&amp;':'&','&lt;':'<','&gt;':'>','&quot;':'"'};String._htmlDecRE=/(&amp;|&lt;|&gt;|&quot;)/gi;}var s=this;s=s.replace(String._htmlDecRE,function(str,m){return String._htmlDecMap[m];});return s;}
String.prototype.htmlEncode=function(){if(!String._htmlEncRE){String._htmlEncMap={'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;'};String._htmlEncRE=/([&<>"])/g;}var s=this;if(String._htmlEncRE.test(s)){s=s.replace(String._htmlEncRE,function(str,m){return String._htmlEncMap[m];});}return s;}
String.prototype.indexOfAny=function(chars,startIndex,count){var length=this.length;if(!length){return-1;}startIndex=startIndex||0;count=count||length;var endIndex=startIndex+count-1;if(endIndex>=length){endIndex=length-1;}for(var i=startIndex;i<=endIndex;i++){if(chars.indexOf(this.charAt(i))>=0){return i;}}return-1;}
String.prototype.insert=function(index,value){if(!value){return this;}if(!index){return value+this;}var s1=this.substr(0,index);var s2=this.substr(index);return s1+value+s2;}
String.isNullOrEmpty=function(s){return!s||!s.length;}
String.prototype.lastIndexOfAny=function(chars,startIndex,count){var length=this.length;if(!length){return-1;}startIndex=startIndex||length-1;count=count||length;var endIndex=startIndex-count+1;if(endIndex<0){endIndex=0;}for(var i=startIndex;i>=endIndex;i--){if(chars.indexOf(this.charAt(i))>=0){return i;}}return-1;}
String.localeFormat=function(format){return String._format(format,arguments,true);}
String.prototype.padLeft=function(totalWidth,ch){if(this.length<totalWidth){ch=ch||' ';return String.fromChar(ch,totalWidth-this.length)+this;}return this;}
String.prototype.padRight=function(totalWidth,ch){if(this.length<totalWidth){ch=ch||' ';return this+String.fromChar(ch,totalWidth-this.length);}return this;}
String.prototype.quote=function(){if(!String._quoteMap){String._quoteMap={'\\':'\\\\','\'':'\\\'','"':'\\"','\r':'\\r','\n':'\\n','\t':'\\t','\f':'\\f','\b':'\\b'};}if(!String._quoteRE||!RegExp._cacheable){String._quoteRE=new RegExp("([\'\"\\\\\x00-\x1F\x7F-\uFFFF])","g");}var s=this;if(String._quoteSkipTest||String._quoteRE.test(s)){s=this.replace(String._quoteRE,function(str,m){var c=String._quoteMap[m];if(c){return c;}c=m.charCodeAt(0);return'\\u'+c.toString(16).toUpperCase().padLeft(4,'0');});}return'"'+s+'"';}
String.prototype.remove=function(index,count){if(!count||((index+count)>this.length)){return this.substr(0,index);}return this.substr(0,index)+this.substr(index+count);}
String.prototype._replace=String.prototype.replace;String.prototype.replace=function(oldValue,newValue){if(oldValue.constructor==String){newValue=newValue||'';return this.split(oldValue).join(newValue);}return String.prototype._replace.call(this,oldValue,newValue);}
String.prototype.startsWith=function(prefix){if(!prefix.length){return true;}if(prefix.length>this.length){return false;}return(this.substr(0,prefix.length)==prefix);}
String.prototype.trim=function(){return this.trimEnd().trimStart();}
String.prototype.trimEnd=function(){return this.replace(/\s*$/,'');}
String.prototype.trimStart=function(){return this.replace(/^\s*/,'');}
String.prototype.unquote=function(){return eval('('+this+')');}
Array.__typeName='Array';Array.prototype.add=function(item){this[this.length]=item;}
Array.prototype.addRange=function(items){if(!items){return;}var length=items.length;for(var index=0;index<length;index++){this[this.length]=items[index];}}
Array.prototype.aggregate=function(seed,callback){var length=this.length;for(var index=0;index<length;index++){seed=callback(seed,this[index],index,this);}return seed;}
Array.prototype.clear=function(){if(this.length>0){this.splice(0,this.length);}}
Array.prototype.clone=function(){var length=this.length;var array=new Array(length);for(var index=0;index<length;index++){array[index]=this[index];}return array;}
Array.prototype.contains=function(item){var index=this.indexOf(item);return(index>=0);}
Array.prototype.dequeue=function(){return this.shift();}
Array.prototype.enqueue=function(item){this._queue=true;this.push(item);}
Array.prototype.peek=function(){if(this.length){var index=this._queue?0:this.length-1;return this[index];}return null;}
if(!Array.prototype.every){Array.prototype.every=function(callback){for(var i=this.length-1;i>=0;i--){if(!callback(this[i],i,this)){return false;}}return true;}}
Array.prototype.extract=function(index,count){if(!count){return this.slice(index);}return this.slice(index,index+count);}
if(!Array.prototype.filter){Array.prototype.filter=function(callback){var filtered=[];for(var i=0;i<this.length;i++){if(callback(this[i],i,this)){filtered.add(this[i]);}}return filtered;}}
if(!Array.prototype.forEach){Array.prototype.forEach=function(callback){for(var i=0;i<this.length;i++){callback(this[i],i,this);}}}
Array.prototype.groupBy=function(callback){var length=this.length;var groups=[];var keys={};for(var index=0;index<length;index++){var key=callback(this[index],index);if(String.isNullOrEmpty(key)){continue;}var items=keys[key];if(!items){items=[];items.key=key;keys[key]=items;groups.add(items);}items.add(this[index]);}return groups;}
Array.prototype.index=function(callback){var length=this.length;var items={};for(var index=0;index<length;index++){var key=callback(this[index],index);if(String.isNullOrEmpty(key)){continue;}items[key]=this[index];}return items;}
Array.prototype.indexOf=function(item){var length=this.length;if(length){for(var index=0;index<length;index++){if(this[index]===item){return index;}}}return-1;}
Array.prototype.insert=function(index,item){this.splice(index,0,item);}
Array.prototype.insertRange=function(index,items){this.splice(index,0,items);}
if(!Array.prototype.map){Array.prototype.map=function(callback){var mapped=new Array(this.length);for(var i=this.length-1;i>=0;i--){mapped[i]=callback(this[i],i,this);}return mapped;}}
Array.parse=function(s){return eval('('+s+')');}
Array.prototype.remove=function(item){var index=this.indexOf(item);if(index>=0){this.splice(index,1);return true;}return false;}
Array.prototype.removeAt=function(index){return this.splice(index,1)[0];}
Array.prototype.removeRange=function(index,count){return this.splice(index,count);}
if(!Array.prototype.some){Array.prototype.some=function(callback){for(var i=this.length-1;i>=0;i--){if(callback(this[i],i,this)){return true;}}return false;}}
RegExp.__typeName='RegExp';RegExp.parse=function(s){if(s.startsWith('/')){var endSlashIndex=s.lastIndexOf('/');if(endSlashIndex>1){var expression=s.substring(1,endSlashIndex);var flags=s.substr(endSlashIndex+1);return new RegExp(expression,flags);}}return null;}
Date.__typeName='Date';Date.get_now=function(){return new Date();}
Date.get_today=function(){var d=new Date();return new Date(d.getFullYear(),d.getMonth(),d.getDate());}
Date.prototype.format=function(format,useLocale){if(isNullOrUndefined(format)||(format.length==0)||(format=='i')){if(useLocale){return this.toLocaleString();}else{return this.toString();}}if(format=='id'){if(useLocale){return this.toLocaleDateString();}else{return this.toDateString();}}if(format=='it'){if(useLocale){return this.toLocaleTimeString();}else{return this.toTimeString();}}return this._netFormat(format,useLocale);}
Date.prototype._netFormat=function(format,useLocale){var dtf=useLocale?CultureInfo.Current.dateFormat:CultureInfo.Neutral.dateFormat;var useUTC=false;if(format.length==1){switch(format){case'f':format=dtf.longDatePattern+' '+dtf.shortTimePattern;case'F':format=dtf.dateTimePattern;break;case'd':format=dtf.shortDatePattern;break;case'D':format=dtf.longDatePattern;break;case't':format=dtf.shortTimePattern;break;case'T':format=dtf.longTimePattern;break;case'g':format=dtf.shortDatePattern+' '+dtf.shortTimePattern;break;case'G':format=dtf.shortDatePattern+' '+dtf.longTimePattern;break;case'R':case'r':format=dtf.gmtDateTimePattern;useUTC=true;break;case'u':format=dtf.universalDateTimePattern;useUTC=true;break;case'U':format=dtf.dateTimePattern;useUTC=true;break;case's':format=dtf.sortableDateTimePattern;break;}}if(format.charAt(0)=='%'){format=format.substr(1);}if(!Date._formatRE){Date._formatRE=/dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|zzz|zz|z/g;}var re=Date._formatRE;var sb=new StringBuilder();var dt=this;if(useUTC){dt=new Date(Date.UTC(dt.getUTCFullYear(),dt.getUTCMonth(),dt.getUTCDate(),dt.getUTCHours(),dt.getUTCMinutes(),dt.getUTCSeconds(),dt.getUTCMilliseconds()));}re.lastIndex=0;while(true){var index=re.lastIndex;var match=re.exec(format);sb.append(format.slice(index,match?match.index:format.length));if(!match){break;}var fs=match[0];var part=fs;switch(fs){case'dddd':part=dtf.dayNames[dt.getDay()];break;case'ddd':part=dtf.shortDayNames[dt.getDay()];break;case'dd':part=dt.getDate().toString().padLeft(2,'0');break;case'd':part=dt.getDate();break;case'MMMM':part=dtf.monthNames[dt.getMonth()];break;case'MMM':part=dtf.shortMonthNames[dt.getMonth()];break;case'MM':part=(dt.getMonth()+1).toString().padLeft(2,'0');break;case'M':part=(dt.getMonth()+1);break;case'yyyy':part=dt.getFullYear();break;case'yy':part=(dt.getFullYear()%100).toString().padLeft(2,'0');break;case'y':part=(dt.getFullYear()%100);break;case'h':case'hh':part=dt.getHours()%12;if(!part){part='12';}else if(fs=='hh'){part=part.toString().padLeft(2,'0');}break;case'HH':part=dt.getHours().toString().padLeft(2,'0');break;case'H':part=dt.getHours();break;case'mm':part=dt.getMinutes().toString().padLeft(2,'0');break;case'm':part=dt.getMinutes();break;case'ss':part=dt.getSeconds().toString().padLeft(2,'0');break;case's':part=dt.getSeconds();break;case't':case'tt':part=(dt.getHours()<12)?dtf.amDesignator:dtf.pmDesignator;if(fs=='t'){part=part.charAt(0);}break;case'fff':part=dt.getMilliseconds().toString().padLeft(3,'0');break;case'ff':part=dt.getMilliseconds().toString().padLeft(3).substr(0,2);break;case'f':part=dt.getMilliseconds().toString().padLeft(3).charAt(0);break;case'z':part=dt.getTimezoneOffset()/60;part=((part>=0)?'-':'+')+Math.floor(Math.abs(part));break;case'zz':case'zzz':part=dt.getTimezoneOffset()/60;part=((part>=0)?'-':'+')+Math.floor(Math.abs(part)).toString().padLeft(2,'0');if(fs=='zzz'){part+=dtf.timeSeparator+Math.abs(dt.getTimezoneOffset()%60).toString().padLeft(2,'0');}break;}sb.append(part);}return sb.toString();}
Date._parse=Date.parse;Date.parse=function(s){return new Date(Date._parse(s));}
Error.__typeName='Error';Error.create=function(message,userData,innerException){var e=new Error(message);if(userData){e.userData=userData;}if(innerException){e.innerException=innerException;}return e;}
if(!Debug._fail){Debug._fail=function(message){Debug.writeln(message);eval('debugger;');}}
Debug.assert=function(condition,message){if(!condition){message='Assert failed: '+message;if(confirm(message+'\r\n\r\nBreak into debugger?')){Debug._fail(message);}}}
Debug._dumpCore=function(sb,object,name,indentation,dumpedObjects){if(object===null){sb.appendLine(indentation+name+': null');return;}switch(typeof(object)){case'undefined':sb.appendLine(indentation+name+': undefined');break;case'number':case'string':case'boolean':sb.appendLine(indentation+name+': '+object);break;default:if(Date.isInstance(object)||RegExp.isInstance(object)){sb.appendLine(indentation+name+': '+object);break;}if(dumpedObjects.contains(object)){sb.appendLine(indentation+name+': ...');break;}dumpedObjects.add(object);var type=Type.getInstanceType(object);var typeName=type.get_fullName();var recursiveIndentation=indentation+'  ';if(IArray.isInstance(object)){sb.appendLine(indentation+name+': {'+typeName+'}');var length=object.getLength();for(var i=0;i<length;i++){Debug._dumpCore(sb,object.getItem(i),'['+i+']',recursiveIndentation,dumpedObjects);}}else{if(object.tagName){sb.appendLine(indentation+name+': <'+object.tagName+'>');var attributes=object.attributes;for(var i=0;i<attributes.length;i++){var attrValue=attributes[i].nodeValue;if(attrValue){Debug._dumpCore(sb,attrValue,attributes[i].nodeName,recursiveIndentation,dumpedObjects);}}}else{sb.appendLine(indentation+name+': {'+typeName+'}');for(var field in object){var v=object[field];if(!Function.isInstance(v)){Debug._dumpCore(sb,v,field,recursiveIndentation,dumpedObjects);}}}}dumpedObjects.remove(object);break;}}
Debug.dump=function(object,name){if((!name||!name.length)&&(object!==null)){name=Type.getInstanceType(object).get_fullName();}if(!name||!name.length){return;}var sb=new StringBuilder();Debug._dumpCore(sb,object,name,'',[]);Debug.writeLine(sb.toString());}
Debug.fail=function(message){Debug._fail(message);}
Debug.inspect=function(object,name){var dumped=false;if(window.debugService){dumped=window.debugService.inspect(name,object);}if(!dumped){Debug.dump(object,name);}}
Debug.writeLine=function(message){if(window.debugService){window.debugService.trace(message);return;}Debug.writeln(message);var traceTextBox=$('_traceTextBox');if(traceTextBox){traceTextBox.value=traceTextBox.value+'\r\n'+message;}}
Debug.__typeName='Debug';var Type=Function;Type.__typeName='Type';var __Namespace=function(name){this.__typeName=name;}
__Namespace.prototype={__namespace:true,getName:function(){return this.__typeName;}}
Type.createNamespace=function(name){if(!window.__namespaces){window.__namespaces={};}if(!window.__rootNamespaces){window.__rootNamespaces=[];}if(window.__namespaces[name]){return;}var ns=window;var nameParts=name.split('.');for(var i=0;i<nameParts.length;i++){var part=nameParts[i];var nso=ns[part];if(!nso){ns[part]=nso=new __Namespace(nameParts.slice(0,i+1).join('.'));if(i==0){window.__rootNamespaces.add(nso);}}ns=nso;}window.__namespaces[name]=ns;}
Type.prototype.createClass=function(name,baseType,interfaceType){this.prototype.constructor=this;this.__typeName=name;this.__class=true;this.__baseType=baseType||Object;if(baseType){this.__basePrototypePending=true;}if(interfaceType){this.__interfaces=[];for(var i=2;i<arguments.length;i++){interfaceType=arguments[i];this.__interfaces.add(interfaceType);}}}
Type.prototype.createInterface=function(name){this.__typeName=name;this.__interface=true;}
Type.prototype.createEnum=function(name,flags){for(var field in this.prototype){this[field]=this.prototype[field];}this.__typeName=name;this.__enum=true;if(flags){this.__flags=true;}}
Type.prototype.setupBase=function(){if(this.__basePrototypePending){var baseType=this.__baseType;if(baseType.__basePrototypePending){baseType.setupBase();}for(var memberName in baseType.prototype){var memberValue=baseType.prototype[memberName];if(!this.prototype[memberName]){this.prototype[memberName]=memberValue;}}delete this.__basePrototypePending;}}
if(!Type.prototype.resolveInheritance){Type.prototype.resolveInheritance=Type.prototype.setupBase;}
Type.prototype.constructBase=function(instance,args){if(this.__basePrototypePending){this.setupBase();}if(!args){this.__baseType.apply(instance);}else{this.__baseType.apply(instance,args);}}
Type.prototype.callBase=function(instance,name,args){var baseMethod=this.__baseType.prototype[name];if(!args){return baseMethod.apply(instance);}else{return baseMethod.apply(instance,args);}}
Type.prototype.get_baseType=function(){return this.__baseType||null;}
Type.prototype.get_fullName=function(){return this.__typeName;}
Type.prototype.get_name=function(){var fullName=this.__typeName;var nsIndex=fullName.lastIndexOf('.');if(nsIndex>0){return fullName.substr(nsIndex+1);}return fullName;}
Type.prototype.isInstance=function(instance){if(isNullOrUndefined(instance)){return false;}if((this==Object)||(instance instanceof this)){return true;}var type=Type.getInstanceType(instance);return this.isAssignableFrom(type);}
Type.prototype.isAssignableFrom=function(type){if((this==Object)||(this==type)){return true;}if(this.__class){var baseType=type.__baseType;while(baseType){if(this==baseType){return true;}baseType=baseType.__baseType;}}else if(this.__interface){var interfaces=type.__interfaces;if(interfaces&&interfaces.contains(this)){return true;}var baseType=type.__baseType;while(baseType){interfaces=baseType.__interfaces;if(interfaces&&interfaces.contains(this)){return true;}baseType=baseType.__baseType;}}return false;}
Type.isClass=function(type){return(type.__class==true);}
Type.isEnum=function(type){return(type.__enum==true);}
Type.isFlagsEnum=function(type){return((type.__enum==true)&&(type.__flags==true));}
Type.isInterface=function(type){return(type.__interface==true);}
Type.canCast=function(instance,type){return type.isInstance(instance);}
Type.safeCast=function(instance,type){if(type.isInstance(instance)){return instance;}return null;}
Type.getInstanceType=function(instance){var ctor=null;try{ctor=instance.constructor;}catch(ex){}if(!ctor||!ctor.__typeName){ctor=Object;}return ctor;}
Type.getType=function(typeName){if(!typeName){return null;}if(!Type.__typeCache){Type.__typeCache={};}var type=Type.__typeCache[typeName];if(!type){type=eval(typeName);Type.__typeCache[typeName]=type;}return type;}
Type.parse=function(typeName){return Type.getType(typeName);}
var Enum=function(){}
Enum.createClass('Enum');Enum.parse=function(enumType,s){var values=enumType.prototype;if(!enumType.__flags){for(var f in values){if(f===s){return values[f];}}}else{var parts=s.split('|');var value=0;var parsed=true;for(var i=parts.length-1;i>=0;i--){var part=parts[i].trim();var found=false;for(var f in values){if(f===part){value|=values[f];found=true;break;}}if(!found){parsed=false;break;}}if(parsed){return value;}}throw'Invalid Enumeration Value';}
Enum.toString=function(enumType,value){var values=enumType.prototype;if(!enumType.__flags||(value===0)){for(var i in values){if(values[i]===value){return i;}}throw'Invalid Enumeration Value';}else{var parts=[];for(var i in values){if(values[i]&value){if(parts.length){parts.add(' | ');}parts.add(i);}}if(!parts.length){throw'Invalid Enumeration Value';}return parts.join('');}}
var Delegate=function(){}
Delegate.createClass('Delegate');Delegate.Null=function(){}
Delegate._create=function(targets){var delegate=function(){if(targets.length==2){return targets[1].apply(targets[0],arguments);}else{for(var i=0;i<targets.length;i+=2){targets[i+1].apply(targets[i],arguments);}return null;}};delegate.invoke=delegate;delegate._targets=targets;return delegate;}
Delegate.create=function(object,method){if(!object){method.invoke=method;return method;}return Delegate._create([object,method]);}
Delegate.combine=function(delegate1,delegate2){if(!delegate1){if(!delegate2._targets){return Delegate.create(null,delegate2);}return delegate2;}if(!delegate2){if(!delegate1._targets){return Delegate.create(null,delegate1);}return delegate1;}var targets1=delegate1._targets?delegate1._targets:[null,delegate1];var targets2=delegate2._targets?delegate2._targets:[null,delegate2];return Delegate._create(targets1.concat(targets2));}
Delegate.remove=function(delegate1,delegate2){if(!delegate1||(delegate1===delegate2)){return null;}if(!delegate2){return delegate1;}var targets=delegate1._targets;var object=null;var method;if(delegate2._targets){object=delegate2._targets[0];method=delegate2._targets[1];}else{method=delegate2;}for(var i=0;i<targets.length;i+=2){if((targets[i]===object)&&(targets[i+1]===method)){if(targets.length==2){return null;}targets.splice(i,2);return Delegate._create(targets);}}return delegate1;}
Delegate.createExport=function(delegate,multiUse){var name='__'+(new Date()).valueOf();Delegate[name]=function(){if(!multiUse){Delegate.deleteExport(name);}delegate.apply(null,arguments);};return name;}
Delegate.deleteExport=function(name){if(Delegate[name]){delete Delegate[name];}}
Delegate.clearExport=function(name){if(Delegate[name]){Delegate[name]=Delegate.Null;}}
var CultureInfo=function(name,numberFormat,dateFormat){this.name=name;this.numberFormat=numberFormat;this.dateFormat=dateFormat;}
CultureInfo.createClass('CultureInfo');CultureInfo.Neutral=new CultureInfo('en-US',{naNSymbol:'NaN',negativeSign:'-',positiveSign:'+',negativeInfinityText:'-Infinity',positiveInfinityText:'Infinity',percentSymbol:'%',percentGroupSizes:[3],percentDecimalDigits:2,percentDecimalSeparator:'.',percentGroupSeparator:',',percentPositivePattern:'{0} %',percentNegativePattern:'-{0} %',currencySymbol:'$',currencyGroupSizes:[3],currencyDecimalDigits:2,currencyDecimalSeparator:'.',currencyGroupSeparator:',',currencyNegativePattern:'(${0})',currencyPositivePattern:'${0}',numberGroupSizes:[3],numberDecimalDigits:2,numberDecimalSeparator:'.',numberGroupSeparator:','},{amDesignator:'AM',pmDesignator:'PM',dateSeparator:'/',timeSeparator:':',gmtDateTimePattern:'ddd, dd MMM yyyy HH:mm:ss \'GMT\'',universalDateTimePattern:'yyyy-MM-dd HH:mm:ssZ',sortableDateTimePattern:'yyyy-MM-ddTHH:mm:ss',dateTimePattern:'dddd, MMMM dd, yyyy h:mm:ss tt',longDatePattern:'dddd, MMMM dd, yyyy',shortDatePattern:'M/d/yyyy',longTimePattern:'h:mm:ss tt',shortTimePattern:'h:mm tt',firstDayOfWeek:0,dayNames:['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],shortDayNames:['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],minimizedDayNames:['Su','Mo','Tu','We','Th','Fr','Sa'],monthNames:['January','February','March','April','May','June','July','August','September','October','November','December',''],shortMonthNames:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec','']});CultureInfo.Current=CultureInfo.Neutral;var IArray=function(){};IArray.createInterface('IArray');var IEnumerator=function(){};IEnumerator.createInterface('IEnumerator');var IEnumerable=function(){};IEnumerable.createInterface('IEnumerable');var ArrayEnumerator=function(array){this._array=array;this._index=-1;}
ArrayEnumerator.prototype={get_current:function(){return this._array[this._index];},moveNext:function(){this._index++;return(this._index<this._array.length);},reset:function(){this._index=-1;}}
ArrayEnumerator.createClass('ArrayEnumerator',null,IEnumerator);Array.__interfaces=[IArray,IEnumerable];Array.prototype.getLength=function(){return this.length;}
Array.prototype.getItem=function(index){return this[index];}
Array.prototype.getEnumerator=function(){return new ArrayEnumerator(this);}
var IDisposable=function(){};IDisposable.createInterface('IDisposable');var IServiceProvider=function(){};IServiceProvider.createInterface('IServiceProvider');var IServiceContainer=function(){};IServiceContainer.createInterface('IServiceContainer');var StringBuilder=function(s){if((s!==undefined)&&(s!==null)){this._parts=[s];}else{this._parts=[];}}
StringBuilder.prototype={get_isEmpty:function(){return(this._parts.length==0);},append:function(s){if((s!==undefined)&&(s!==null)){this._parts.add(s);}},appendLine:function(s){this.append(s);this.append('\r\n');},clear:function(){this._parts.clear();},toString:function(){return this._parts.join('');}};StringBuilder.createClass('StringBuilder');var EventArgs=function(){}
EventArgs.createClass('EventArgs');EventArgs.Empty=new EventArgs();if(!window.XMLHttpRequest){window.XMLHttpRequest=function(){var progIDs=['Msxml2.XMLHTTP','Microsoft.XMLHTTP'];for(var i=0;i<progIDs.length;i++){try{var xmlHttp=new ActiveXObject(progIDs[i]);return xmlHttp;}catch(ex){}}return null;}}
var XMLDocumentParser=function(){}
XMLDocumentParser.createClass('XMLDocumentParser');XMLDocumentParser.parse=function(markup){if(!window.DOMParser){var progIDs=['Msxml2.DOMDocument.3.0','Msxml2.DOMDocument'];for(var i=0;i<progIDs.length;i++){try{var xmlDOM=new ActiveXObject(progIDs[i]);xmlDOM.async=false;xmlDOM.loadXML(markup);xmlDOM.setProperty('SelectionLanguage','XPath');return xmlDOM;}catch(ex){}}}else{try{var domParser=new DOMParser();return domParser.parseFromString(markup,'text/xml');}catch(ex){}}return null;}
var ScriptLoader=function ScriptLoader(scriptURLs){Debug.assert((scriptURLs)&&(scriptURLs.length));this._scriptURLs=scriptURLs;this._scriptLoadIndex=-1;}
ScriptLoader.prototype={_scriptURLs:null,_loadedHandler:null,_errorHandler:null,_isIE:false,_onLoadHandler:null,_onErrorHandler:null,_scriptLoadIndex:0,_scriptElements:null,_loadedScripts:0,_inError:false,_loaded:false,dispose:function(){if(this._scriptElements){for(var i=0;i<this._scriptElements.length;i++){var scriptElement=this._scriptElements[i];if(this._isIE){scriptElement.detachEvent('onreadystatechange',this._onLoadHandler);}else{scriptElement.detachEvent('onload',this._onLoadHandler);scriptElement.detachEvent('onerror',this._onErrorHandler);}}this._scriptElements=null;}},load:function(loadInParallel,timeout,loadedHandler,errorHandler){Debug.assert(loadedHandler);Debug.assert(errorHandler);this._loadedHandler=loadedHandler;this._errorHandler=errorHandler;this._isIE=(window.navigator.userAgent.indexOf('MSIE')>=0);this._onLoadHandler=Delegate.create(this,this._onScriptLoad);if(!this._isIE){this._onErrorHandler=Delegate.create(this,this._onScriptError);}this._scriptElements=[];if(loadInParallel){for(var i=0;i<this._scriptURLs.length;i++){this._loadScript(this._scriptURLs[i]);}}else{this._scriptLoadIndex++;this._loadScript(this._scriptURLs[this._scriptLoadIndex]);}if(timeout){window.setTimeout(Delegate.create(this,this._onScriptError),timeout);}},_loadScript:function(scriptURL){var scriptElement=document.createElement('SCRIPT');if(this._isIE){scriptElement.attachEvent('onreadystatechange',this._onLoadHandler);}else{scriptElement.readyState='complete';scriptElement.attachEvent('onload',this._onLoadHandler);scriptElement.attachEvent('onerror',this._onErrorHandler);}scriptElement.type='text/javascript';scriptElement.src=scriptURL;this._scriptElements.add(scriptElement);document.getElementsByTagName('HEAD')[0].appendChild(scriptElement);},_onScriptError:function(){if((!this._inError)&&(!this._loaded)){this._inError=true;this._errorHandler.invoke(this,EventArgs.Empty);}},_onScriptLoad:function(){if(this._inError){return;}var scriptElement=window.event.srcElement;if(!scriptElement.readyState){scriptElement=window.event.currentTarget;}if((scriptElement.readyState!='complete')&&(scriptElement.readyState!='loaded')){return;}if(this._scriptLoadIndex!=-1){this._scriptLoadIndex++;if(this._scriptLoadIndex!=this._scriptURLs.length){this._loadScript(this._scriptURLs[this._scriptLoadIndex]);return;}}else{this._loadedScripts++;if(this._loadedScripts!=this._scriptURLs.length){return;}}this._loaded=true;this._loadedHandler.invoke(this,EventArgs.Empty);}};ScriptLoader.createClass('ScriptLoader',null,IDisposable);var ScriptHost=function ScriptHost(){}
ScriptHost.get_isLoading=function(){return ScriptHost._loading;}
ScriptHost.add_load=function(value){if(ScriptHost._loaded){value.invoke(null,EventArgs.Empty);}else{ScriptHost._loadHandler=Delegate.combine(ScriptHost._loadHandler,value);}}
ScriptHost.remove_load=function(value){ScriptHost._loadHandler=Delegate.remove(ScriptHost._loadHandler,value);}
ScriptHost.add_unload=function(value){ScriptHost._unloadHandler=Delegate.combine(ScriptHost._unloadHandler,value);}
ScriptHost.remove_unload=function(value){ScriptHost._unloadHandler=Delegate.remove(ScriptHost._unloadHandler,value);}
ScriptHost.close=function(){if(ScriptHost._fxScripts){ScriptHost._fxScripts.dispose();ScriptHost._fxScripts=null;}if(ScriptHost._coreScripts){ScriptHost._coreScripts.dispose();ScriptHost._coreScripts=null;}if(ScriptHost._unloadHandler){ScriptHost._unloadHandler.invoke(null,EventArgs.Empty);ScriptHost._unloadHandler=null;}if(ScriptHost._windowLoadHandler){window.detachEvent('onload',ScriptHost._windowLoadHandler);ScriptHost._windowLoadHandler=null;}if(ScriptHost._windowUnloadHandler){window.detachEvent('onunload',ScriptHost._windowUnloadHandler);ScriptHost._windowUnloadHandler=null;}}
ScriptHost.initialize=function(coreScriptURLs,fxScriptURLs){if(!ScriptHost._initialized){ScriptHost._initialized=true;if(ScriptHost._windowLoadHandler){window.detachEvent('onload',ScriptHost._windowLoadHandler);ScriptHost._windowLoadHandler=null;}if((coreScriptURLs)&&(coreScriptURLs.length)){ScriptHost._coreScripts=new ScriptLoader(coreScriptURLs);}if((fxScriptURLs)&&(fxScriptURLs.length)){ScriptHost._fxScripts=new ScriptLoader(fxScriptURLs);}if((!ScriptHost._coreScripts)&&(!ScriptHost._fxScripts)){ScriptHost._onLoaded();}else{ScriptHost._loadScripts();}}}
ScriptHost._loadScripts=function(){ScriptHost._loading=true;if(ScriptHost._coreScripts){ScriptHost._coreScripts.load(false,20*1000,Delegate.create(null,ScriptHost._onScriptsCompleted),Delegate.create(null,ScriptHost._onScriptsError));return;}else{ScriptHost._fxScripts.load(true,20*1000,Delegate.create(null,ScriptHost._onScriptsCompleted),Delegate.create(null,ScriptHost._onScriptsError));}}
ScriptHost._onLoaded=function(){ScriptHost._loaded=true;if(window.main){window.main();}if(ScriptHost._loadHandler){ScriptHost._loadHandler.invoke(null,EventArgs.Empty);ScriptHost._loadHandler=null;}}
ScriptHost._onScriptsCompleted=function(sender,e){if(sender==ScriptHost._coreScripts){ScriptHost._coreScripts.dispose();ScriptHost._coreScripts=null;if(ScriptHost._fxScripts){ScriptHost._fxScripts.load(true,20*1000,Delegate.create(null,ScriptHost._onScriptsCompleted),Delegate.create(null,ScriptHost._onScriptsError));return;}}else{ScriptHost._fxScripts.dispose();ScriptHost._fxScripts=null;}ScriptHost._loading=false;ScriptHost._onLoaded();}
ScriptHost._onScriptsError=function(sender,e){}
ScriptHost._onWindowLoad=function(){ScriptHost.initialize(null,null);}
ScriptHost._onWindowUnload=function(){ScriptHost.close();}
ScriptHost.createClass('ScriptHost');ScriptHost._coreScripts=null;ScriptHost._fxScripts=null;ScriptHost._loadHandler=null;ScriptHost._unloadHandler=null;ScriptHost._initialized=false;ScriptHost._loading=false;ScriptHost._loaded=false;ScriptHost._windowLoadHandler=Delegate.create(null,ScriptHost._onWindowLoad);ScriptHost._windowUnloadHandler=Delegate.create(null,ScriptHost._onWindowUnload);window.attachEvent('onload',ScriptHost._windowLoadHandler);window.attachEvent('onunload',ScriptHost._windowUnloadHandler);Type.createNamespace('ScriptFX');ScriptFX.CollectionChangedAction=function(){};ScriptFX.CollectionChangedAction.prototype={add:0,remove:1,reset:2}
ScriptFX.CollectionChangedAction.createEnum('ScriptFX.CollectionChangedAction',false);ScriptFX.$create__Core$1=function(eventType,sender,eventArgs,eventCookie){var $o={};$o.$1=eventType;$o.$0=sender;$o.$2=eventArgs;$o.$3=eventCookie;return $o;}
ScriptFX.IEventManager=function(){};ScriptFX.IEventManager.createInterface('ScriptFX.IEventManager');ScriptFX.ISupportInitialize=function(){};ScriptFX.ISupportInitialize.createInterface('ScriptFX.ISupportInitialize');ScriptFX.INotifyDisposing=function(){};ScriptFX.INotifyDisposing.createInterface('ScriptFX.INotifyDisposing');ScriptFX.HostName=function(){};ScriptFX.HostName.prototype={other:0,IE:1,mozilla:2,safari:3,opera:4}
ScriptFX.HostName.createEnum('ScriptFX.HostName',false);ScriptFX.INotifyCollectionChanged=function(){};ScriptFX.INotifyCollectionChanged.createInterface('ScriptFX.INotifyCollectionChanged');ScriptFX.INotifyPropertyChanged=function(){};ScriptFX.INotifyPropertyChanged.createInterface('ScriptFX.INotifyPropertyChanged');ScriptFX.ITask=function(){};ScriptFX.ITask.createInterface('ScriptFX.ITask');ScriptFX.IObjectWithOwner=function(){};ScriptFX.IObjectWithOwner.createInterface('ScriptFX.IObjectWithOwner');ScriptFX.Application=function(){this.$9=[];this.$A=100;ScriptHost.add_load(Delegate.create(this,this.$18));ScriptHost.add_unload(Delegate.create(this,this.$19));this.$12=Delegate.create(this,this.$1C);window.attachEvent('onbeforeunload',this.$12);this.$13=Delegate.create(this,this.$1B);window.attachEvent('onerror',this.$13);var $0=document.documentElement;var $1=$0.className;if($1.startsWith('$')){var $2=this.get_host();$1=$1.replace('$browser',Enum.toString(ScriptFX.HostName,$2.get_name()));$1=$1.replace('$majorver',$2.get_majorVersion().toString());$1=$1.replace('$minorver',$2.get_minorVersion().toString());$0.className=$1;}}
ScriptFX.Application.prototype={$0:null,$1:0,$2:null,$3:false,$4:false,$5:false,$6:null,$7:null,$8:null,$9:null,$A:0,$B:0,$C:null,$D:0,$E:null,$F:null,$10:null,$11:null,$12:null,$13:null,$14:null,$15:null,get_domain:function(){return window.document.domain;},set_domain:function(value){window.document.domain=value;return value;},get_$16:function(){if(!this.$8){this.$8=new ScriptFX.EventList();}return this.$8;},get_history:function(){return this.$7;},get_host:function(){if(!this.$0){this.$0=new ScriptFX.HostInfo();}return this.$0;},get_idleFrequency:function(){return this.$A;},set_idleFrequency:function(value){this.$A=value;return value;},get_isFirstLoad:function(){return this.$5;},get_isIE:function(){if(!this.$1){this.$1=(this.get_host().get_name()===1)?1:-1;}return(this.$1===1)?true:false;},get_sessionState:function(){return this.$6;},add_error:function(value){this.get_$16().addHandler('error',value);},remove_error:function(value){this.get_$16().removeHandler('error',value);},add_idle:function(value){this.get_$16().addHandler('idle',value);if(!this.$B){if(!this.$14){this.$14=Delegate.create(this,this.$17);}this.$B=window.setTimeout(this.$14,this.$A);}},remove_idle:function(value){var $0=this.get_$16().removeHandler('idle',value);if((!$0)&&(this.$B)){window.clearTimeout(this.$B);this.$B=0;}},add_load:function(value){if(this.$3){value.invoke(this,EventArgs.Empty);}else{this.get_$16().addHandler('load',value);}},remove_load:function(value){this.get_$16().removeHandler('load',value);},add_unload:function(value){this.get_$16().addHandler('unload',value);},remove_unload:function(value){this.get_$16().removeHandler('unload',value);},add_unloading:function(value){this.get_$16().addHandler('unloading',value);},remove_unloading:function(value){this.get_$16().removeHandler('unloading',value);},addTask:function(task){if(!this.$C){this.$C=[];}this.$C.enqueue(task);if(!this.$D){if(!this.$15){this.$15=Delegate.create(this,this.$1A);}this.$D=window.setTimeout(this.$15,0);}},enableHistory:function(){if(this.$7){return;}this.$7=ScriptFX.HistoryManager.$8();},getService:function(serviceType){if((serviceType===IServiceContainer)||(serviceType===ScriptFX.IEventManager)){return this;}if(this.$11){var $0=serviceType.get_fullName().replace('.','$');return this.$11[$0];}return null;},$17:function(){this.$B=0;var $0=this.get_$16().getHandler('idle');if($0){$0.invoke(this,EventArgs.Empty);this.$B=window.setTimeout(this.$14,this.$A);}},$18:function($p0,$p1){var $0=$('__session');if($0){var $2=$0.value;if(String.isNullOrEmpty($2)){this.$5=true;this.$6={};}else{this.$6=ScriptFX.JSON.deserialize($2);if(isUndefined(this.$6['__appLoaded'])){this.$5=true;}}this.$6['__appLoaded']=true;}else{this.$5=true;}if(this.$2){for(var $3=0;$3<this.$2.length;$3+=2){this.$2[$3].main(this.$2[$3+1]);}this.$2=null;}this.$3=true;var $1=this.get_$16().getHandler('load');if($1){$1.invoke(this,EventArgs.Empty);}if(this.$7){this.$7.$A();}},$19:function($p0,$p1){if(!this.$4){this.$4=true;if(this.$D){window.clearTimeout(this.$D);}if(this.$B){window.clearTimeout(this.$B);}var $0=this.get_$16().getHandler('unload');if($0){$0.invoke(this,EventArgs.Empty);}if(this.$C){while(this.$C.length){var $1=this.$C.dequeue();if(Type.canCast($1,IDisposable)){($1).dispose();}}}if(this.$9.length){var $enum1=this.$9.getEnumerator();while($enum1.moveNext()){var $2=$enum1.get_current();$2.dispose();}this.$9.clear();}if(this.$7){this.$7.dispose();this.$7=null;}window.detachEvent('onbeforeunload',this.$12);window.detachEvent('onerror',this.$13);this.$12=null;this.$13=null;this.$15=null;this.$14=null;}},$1A:function(){this.$D=0;if(this.$C.length){var $0=this.$C.dequeue();if(!$0.execute()){this.$C.enqueue($0);}else{if(Type.canCast($0,IDisposable)){($0).dispose();}}if(this.$C.length){this.$D=window.setTimeout(this.$15,0);}}},$1B:function(){var $0=this.get_$16().getHandler('error');if($0){var $1=new ScriptFX.CancelEventArgs();$1.set_canceled(true);$0.invoke(this,$1);if($1.get_canceled()){window.event.returnValue=false;}}},$1C:function(){window.event.avoidReturn=true;var $0=this.get_$16().getHandler('unloading');if($0){var $1=new ScriptFX.ApplicationUnloadingEventArgs();$0.invoke(this,$1);}if(this.$6){var $2=$('__session');$2.value=ScriptFX.JSON.serialize(this.$6);}},raiseEvent:function(eventType,sender,e){if(this.$E){var $0=this.$E[eventType];if($0){$0.invoke(sender,e);}}},registerDisposableObject:function(disposableObject){if(!this.$4){this.$9.add(disposableObject);}},registerEvent:function(eventType,sender,e){if(this.$E){var $1=this.$E[eventType];if($1){$1.invoke(sender,e);}}if(!this.$10){this.$10=[];}if(!this.$F){this.$F={};this.$F[eventType]=1;}else{var $2=this.$F[eventType];if(isUndefined($2)){this.$F[eventType]=1;}else{this.$F[eventType]=1+$2;}}var $0=ScriptFX.$create__Core$1(eventType,sender,e,this.$10.length);this.$10.add($0);return $0.$3;},registerEventHandler:function(eventType,handler){var $0=null;if(!this.$E){this.$E={};}else{$0=this.$E[eventType];}this.$E[eventType]=Delegate.combine($0,handler);if(!isNullOrUndefined(this.$F[eventType])){var $enum1=this.$10.getEnumerator();while($enum1.moveNext()){var $1=$enum1.get_current();if(!$1){continue;}if($1.$1===eventType){handler.invoke($1.$0,$1.$2);}}}},registerService:function(serviceType,service){if(!this.$11){this.$11={};}var $0=serviceType.get_fullName().replace('.','$');this.$11[$0]=service;},run:function(scriptletType,args){if(this.$3){scriptletType.main(args);}else{if(!this.$2){this.$2=[];}this.$2.add(scriptletType);this.$2.add(args);}},unregisterDisposableObject:function(disposableObject){if(!this.$4){this.$9.remove(disposableObject);}},unregisterEvent:function(eventCookie){var $0=this.$10[eventCookie];var $1=this.$F[$0.$1];if($1===1){delete this.$F[$0.$1];}else{this.$F[$0.$1]=$1-1;}this.$10[eventCookie]=null;},unregisterEventHandler:function(eventType,handler){if(this.$E){var $0=this.$E[eventType];if($0){$0=Delegate.remove($0,handler);if(!$0){delete this.$E[eventType];}else{this.$E[eventType]=$0;}}}},unregisterService:function(serviceType){if(this.$11){var $0=serviceType.get_fullName().replace('.','$');delete this.$11[$0];}}}
ScriptFX.CancelEventArgs=function(){ScriptFX.CancelEventArgs.constructBase(this);}
ScriptFX.CancelEventArgs.prototype={$1_0:false,get_canceled:function(){return this.$1_0;},set_canceled:function(value){this.$1_0=value;return value;}}
ScriptFX.CollectionChangedEventArgs=function(action,item){ScriptFX.CollectionChangedEventArgs.constructBase(this);this.$1_0=action;this.$1_1=item;}
ScriptFX.CollectionChangedEventArgs.prototype={$1_0:0,$1_1:null,get_action:function(){return this.$1_0;},get_item:function(){return this.$1_1;}}
ScriptFX.ApplicationUnloadingEventArgs=function(){ScriptFX.ApplicationUnloadingEventArgs.constructBase(this);}
ScriptFX.ApplicationUnloadingEventArgs.prototype={setUnloadPrompt:function(prompt){window.event.returnValue=prompt;window.event.avoidReturn=false;}}
ScriptFX.HistoryManager=function(enabled,iframe){this.$0=enabled;this.$1=iframe;}
ScriptFX.HistoryManager.$8=function(){var $0=ScriptFX.Application.current.get_host().get_name();if(($0!==1)&&($0!==2)){return new ScriptFX.HistoryManager(false,null);}var $1=null;if($0===1){$1=$('_historyFrame');}return new ScriptFX.HistoryManager(true,$1);}
ScriptFX.HistoryManager.prototype={$0:false,$1:null,$2:null,$3:null,$4:false,$5:false,$6:null,get_isEnabled:function(){return this.$0;},add_navigated:function(value){this.$7=Delegate.combine(this.$7,value);},remove_navigated:function(value){this.$7=Delegate.remove(this.$7,value);},$7:null,addEntry:function(entryName){if(!this.$0){return;}this.$4=true;if(this.$1){this.$5=true;this.$1.src=this.$2+entryName;}else{this.$E(entryName);}},dispose:function(){if(this.$1){this.$1.detachEvent('onload',this.$3);this.$1=null;}},$9:function(){var $0=window.location.hash;if(($0.length)&&($0.charAt(0)==='#')){$0=$0.substr(1);}return $0;},goBack:function(){window.history.back();},goForward:function(){window.history.forward();},$A:function(){if(!this.$0){return;}ScriptFX.Application.current.add_idle(Delegate.create(this,this.$B));if(this.$1){this.$2=this.$1.src+'?';this.$3=Delegate.create(this,this.$C);this.$1.attachEvent('onload',this.$3);}this.$6=this.$9();this.$D(this.$6);},$B:function($p0,$p1){var $0=this.$9();if($0!==this.$6){if(this.$4){return;}this.$6=$0;this.$D($0);}else{this.$4=false;}},$C:function(){var $0=this.$1.contentWindow.location.search;if(($0.length)&&($0.charAt(0)==='?')){$0=$0.substr(1);}this.$E($0);if(this.$5){this.$5=false;return;}this.$D($0);},$D:function($p0){if(this.$7){this.$7.invoke(this,new ScriptFX.HistoryEventArgs($p0));}},$E:function($p0){this.$6=$p0;window.location.hash=$p0;}}
ScriptFX.HistoryEventArgs=function(entryName){ScriptFX.HistoryEventArgs.constructBase(this);this.$1_0=entryName;}
ScriptFX.HistoryEventArgs.prototype={$1_0:null,get_entryName:function(){return this.$1_0;}}
ScriptFX.HostInfo=function(){var $0=window.navigator.userAgent.toLowerCase();var $1=null;var $2;if(($2=$0.indexOf('opera'))>=0){this.$0=4;$1=$0.substr($2+6);}else if(($2=$0.indexOf('msie'))>=0){this.$0=1;$1=$0.substr($2+5);}else if(($2=$0.indexOf('safari'))>=0){this.$0=3;$1=$0.substr($2+7);}else if(($2=$0.indexOf('firefox'))>=0){this.$0=2;$1=$0.substr($2+8);}else if($0.indexOf('gecko')>=0){this.$0=2;$1=window.navigator.appVersion;}if($1){this.$1=parseFloat($1);this.$2=parseInt(this.$1);if(($2=$1.indexOf('.'))>=0){this.$3=parseInt($1.substr($2+1));}}}
ScriptFX.HostInfo.prototype={$0:0,$1:0,$2:0,$3:0,get_majorVersion:function(){return this.$2;},get_minorVersion:function(){return this.$3;},get_name:function(){return this.$0;},get_version:function(){return this.$1;}}
ScriptFX.EventList=function(){}
ScriptFX.EventList.prototype={$0:null,addHandler:function(key,handler){if(!this.$0){this.$0={};}this.$0[key]=Delegate.combine(this.$0[key],handler);},getHandler:function(key){if(this.$0){return this.$0[key];}return null;},removeHandler:function(key,handler){if(this.$0){var $0=this.$0[key];if($0){var $1=Delegate.remove($0,handler);this.$0[key]=$1;return($1);}}return false;}}
ScriptFX.JSON=function(){}
ScriptFX.JSON.deserialize=function(s){if(String.isNullOrEmpty(s)){return null;}if(!ScriptFX.JSON.$0){ScriptFX.JSON.$0=new RegExp('(\'|\")\\\\@(-?[0-9]+)@(\'|\")','gm');}s=s.replace(ScriptFX.JSON.$0,'new Date($2)');return eval('('+s+')');}
ScriptFX.JSON.serialize=function(o){if(isNullOrUndefined(o)){return String.Empty;}var $0=new StringBuilder();ScriptFX.JSON.$1($0,o);return $0.toString();}
ScriptFX.JSON.$1=function($p0,$p1){if(isNullOrUndefined($p1)){$p0.append('null');return;}var $0=typeof($p1);switch($0){case'boolean':$p0.append($p1.toString());return;case'number':$p0.append((isFinite($p1))?$p1.toString():'null');return;case'string':$p0.append(($p1).quote());return;case'object':if(Array.isInstance($p1)){$p0.append('[');var $1=$p1;var $2=$1.length;var $3=true;for(var $4=0;$4<$2;$4++){if($3){$3=false;}else{$p0.append(',');}ScriptFX.JSON.$1($p0,$1[$4]);}$p0.append(']');}else if(Date.isInstance($p1)){var $5=$p1;var $6=Date.UTC($5.getUTCFullYear(),$5.getUTCMonth(),$5.getUTCDate(),$5.getUTCHours(),$5.getUTCMinutes(),$5.getUTCSeconds(),$5.getUTCMilliseconds());$p0.append('\"\\@');$p0.append($6.toString());$p0.append('@\"');}else if(RegExp.isInstance($p1)){$p0.append($p1.toString());}else{$p0.append('{');var $7=true;var $dict1=$p1;for(var $key2 in $dict1){var $8={key:$key2,value:$dict1[$key2]};if(($8.key).startsWith('$')||Function.isInstance($8.value)){continue;}if($7){$7=false;}else{$p0.append(',');}$p0.append($8.key);$p0.append(':');ScriptFX.JSON.$1($p0,$8.value);}$p0.append('}');}return;default:$p0.append('null');return;}}
ScriptFX.PropertyChangedEventArgs=function(propertyName){ScriptFX.PropertyChangedEventArgs.constructBase(this);this.$1_0=propertyName;}
ScriptFX.PropertyChangedEventArgs.prototype={$1_0:null,get_propertyName:function(){return this.$1_0;}}
ScriptFX.ObservableCollection=function(owner,disposableItems){this.$0=owner;this.$1=[];this.$2=disposableItems;}
ScriptFX.ObservableCollection.prototype={$0:null,$1:null,$2:false,$3:null,add_collectionChanged:function(value){this.$3=Delegate.combine(this.$3,value);},remove_collectionChanged:function(value){this.$3=Delegate.remove(this.$3,value);},add:function(item){(item).setOwner(this.$0);this.$1.add(item);if(this.$3){this.$3.invoke(this,new ScriptFX.CollectionChangedEventArgs(0,item));}},clear:function(){if(this.$1.length){var $enum1=this.$1.getEnumerator();while($enum1.moveNext()){var $0=$enum1.get_current();$0.setOwner(null);}this.$1.clear();if(this.$3){this.$3.invoke(this,new ScriptFX.CollectionChangedEventArgs(2,null));}}},contains:function(item){return this.$1.contains(item);},dispose:function(){if(this.$2){var $enum1=this.$1.getEnumerator();while($enum1.moveNext()){var $0=$enum1.get_current();$0.dispose();}}this.$1=null;this.$0=null;this.$3=null;},getEnumerator:function(){return this.$1.getEnumerator();},getItem:function(index){return this.$1[index];},getItems:function(){return this.$1;},getLength:function(){return this.$1.length;},remove:function(item){if(this.$1.contains(item)){(item).setOwner(null);this.$1.remove(item);if(this.$3){this.$3.invoke(this,new ScriptFX.CollectionChangedEventArgs(1,item));}}}}
Type.createNamespace('ScriptFX.Net');ScriptFX.Net.HTTPStatusCode=function(){};ScriptFX.Net.HTTPStatusCode.prototype={canContinue:100,switchingProtocols:101,OK:200,created:201,partialContent:206,accepted:202,nonAuthoritativeInformation:203,noContent:204,resetContent:205,ambiguous:300,moved:301,redirect:302,redirectMethod:303,notModified:304,useProxy:305,temporaryRedirect:307,badRequest:400,methodNotAllowed:400,unauthorized:401,paymentRequired:402,forbidden:403,notFound:404,notAcceptable:406,proxyAuthenticationRequired:407,requestTimeout:408,conflict:409,gone:410,lengthRequired:411,preconditionFailed:412,requestEntityTooLarge:413,requestUriTooLong:414,unsupportedMediaType:415,requestedRangeNotSatisfiable:416,expectationFailed:417,internalServerError:500,notImplemented:501,badGateway:502,serviceUnavailable:503,gatewayTimeout:504,httpVersionNotSupported:505}
ScriptFX.Net.HTTPStatusCode.createEnum('ScriptFX.Net.HTTPStatusCode',false);ScriptFX.Net.HTTPRequestState=function(){};ScriptFX.Net.HTTPRequestState.prototype={inactive:0,inProgress:1,completed:2,aborted:3,timedOut:4}
ScriptFX.Net.HTTPRequestState.createEnum('ScriptFX.Net.HTTPRequestState',false);ScriptFX.Net.HTTPVerb=function(){};ScriptFX.Net.HTTPVerb.prototype={GET:0,POST:1,PUT:2,DELETE:3}
ScriptFX.Net.HTTPVerb.createEnum('ScriptFX.Net.HTTPVerb',false);ScriptFX.Net.IHTTPResponse=function(){};ScriptFX.Net.IHTTPResponse.createInterface('ScriptFX.Net.IHTTPResponse');ScriptFX.Net.HTTPRequest=function(){}
ScriptFX.Net.HTTPRequest.createRequest=function(uri,verb){var $0=new ScriptFX.Net.HTTPRequest();if(!uri.startsWith('{')){$0.$0=uri;}else{var $1=ScriptFX.JSON.deserialize(uri);$0.$0=$1['__uri'];if($1['__nullParams']){$0.$6=$1['__transportType'];}else{$0.$6=Type.getType($1['__transportType']);delete $1.__uri;delete $1.__transportType;$0.$7=$1;}}$0.$1=verb;return $0;}
ScriptFX.Net.HTTPRequest.createURI=function(uri,parameters){var $0=new StringBuilder(uri);if(uri.indexOf('?')<0){$0.append('?');}var $1=0;var $dict1=parameters;for(var $key2 in $dict1){var $2={key:$key2,value:$dict1[$key2]};if($1){$0.append('&');}$0.append($2.key);$0.append('=');$0.append(encodeURIComponent($2.value.toString()));$1++;}return $0.toString();}
ScriptFX.Net.HTTPRequest.prototype={$0:null,$1:0,$2:null,$3:null,$4:null,$5:null,$6:null,$7:null,$8:0,$9:null,$A:null,$B:0,$C:null,$D:null,$E:null,get_content:function(){return this.$2;},set_content:function(value){this.$2=value;return value;},get_hasCredentials:function(){return(!String.isNullOrEmpty(this.$4));},get_hasHeaders:function(){return(this.$3);},get_headers:function(){if(!this.$3){this.$3={};}return this.$3;},get_password:function(){return this.$5;},get_response:function(){return this.$D;},get_state:function(){return this.$B;},get_timeout:function(){return this.$8;},set_timeout:function(value){this.$8=value;return value;},get_timeStamp:function(){return this.$E;},get_$F:function(){return this.$C;},get_$10:function(){return this.$7;},get_transportType:function(){return this.$6;},get_URI:function(){return this.$0;},get_userName:function(){return this.$4;},get_verb:function(){return this.$1;},abort:function(){if(this.$B===1){ScriptFX.Net.HTTPRequestManager.$5(this,false);}},dispose:function(){if(this.$C){this.abort();}},invoke:function(callback,context){this.$9=callback;this.$A=context;ScriptFX.Application.current.registerDisposableObject(this);ScriptFX.Net.HTTPRequestManager.$6(this);},$11:function(){ScriptFX.Application.current.unregisterDisposableObject(this);if(this.$C){this.$C.dispose();this.$C=null;}if(this.$9){this.$9.invoke(this,this.$A);this.$9=null;this.$A=null;}},$12:function(){this.$B=3;this.$11();},$13:function($p0){this.$C=$p0;this.$B=1;this.$E=new Date();},$14:function($p0){this.$D=$p0;this.$B=2;this.$11();},$15:function(){this.$B=4;this.$11();},setContentAsForm:function(data){this.get_headers()['Content-Type']='application/x-www-form-urlencoded';var $0=new StringBuilder();var $1=true;var $dict1=data;for(var $key2 in $dict1){var $2={key:$key2,value:$dict1[$key2]};if(!$1){$0.append('&');}$0.append($2.key);$0.append('=');$0.append(encodeURIComponent($2.value.toString()));$1=false;}this.set_content($0.toString());},setContentAsJSON:function(data){this.get_headers()['Content-Type']='text/json';this.set_content(ScriptFX.JSON.serialize(data));},setCredentials:function(userName,password){this.$4=userName;this.$5=password;}}
ScriptFX.Net.HTTPRequestManager=function(){}
ScriptFX.Net.HTTPRequestManager.add_requestInvoking=function(value){ScriptFX.Net.HTTPRequestManager.$0=Delegate.combine(ScriptFX.Net.HTTPRequestManager.$0,value);}
ScriptFX.Net.HTTPRequestManager.remove_requestInvoking=function(value){ScriptFX.Net.HTTPRequestManager.$0=Delegate.remove(ScriptFX.Net.HTTPRequestManager.$0,value);}
ScriptFX.Net.HTTPRequestManager.add_requestInvoked=function(value){ScriptFX.Net.HTTPRequestManager.$1=Delegate.combine(ScriptFX.Net.HTTPRequestManager.$1,value);}
ScriptFX.Net.HTTPRequestManager.remove_requestInvoked=function(value){ScriptFX.Net.HTTPRequestManager.$1=Delegate.remove(ScriptFX.Net.HTTPRequestManager.$1,value);}
ScriptFX.Net.HTTPRequestManager.get_online=function(){return window.navigator.onLine;}
ScriptFX.Net.HTTPRequestManager.get_timeoutInterval=function(){return ScriptFX.Net.HTTPRequestManager.$2;}
ScriptFX.Net.HTTPRequestManager.set_timeoutInterval=function(value){ScriptFX.Net.HTTPRequestManager.$2=value;return value;}
ScriptFX.Net.HTTPRequestManager.$5=function($p0,$p1){var $0=$p0.get_$F();if($0){$0.abort();ScriptFX.Net.HTTPRequestManager.$7($p0,null,$p1);}}
ScriptFX.Net.HTTPRequestManager.abortAll=function(){var $0=ScriptFX.Net.HTTPRequestManager.$3;ScriptFX.Net.HTTPRequestManager.$3=[];var $enum1=$0.getEnumerator();while($enum1.moveNext()){var $1=$enum1.get_current();ScriptFX.Net.HTTPRequestManager.$5($1,false);}}
ScriptFX.Net.HTTPRequestManager.$6=function($p0){if(ScriptFX.Net.HTTPRequestManager.$0){var $2=new ScriptFX.Net.PreHTTPRequestEventArgs($p0);ScriptFX.Net.HTTPRequestManager.$0.invoke(null,$2);if($2.get_isSuppressed()){$p0.$14($2.get_response());return;}}var $0=$p0.get_transportType();if(!$0){$0=ScriptFX.Net._Core$3;}var $1=new $0($p0);$p0.$13($1);ScriptFX.Net.HTTPRequestManager.$3.add($p0);$1.invoke();if(((ScriptFX.Net.HTTPRequestManager.$2)||($p0.get_timeout()))&&(!ScriptFX.Net.HTTPRequestManager.$4)){ScriptFX.Net.HTTPRequestManager.$4=Delegate.create(null,ScriptFX.Net.HTTPRequestManager.$8);ScriptFX.Application.current.add_idle(ScriptFX.Net.HTTPRequestManager.$4);}}
ScriptFX.Net.HTTPRequestManager.$7=function($p0,$p1,$p2){ScriptFX.Net.HTTPRequestManager.$3.remove($p0);if($p1){$p0.$14($p1);}else if($p2){$p0.$15();}else{$p0.$12();}if(ScriptFX.Net.HTTPRequestManager.$1){var $0=new ScriptFX.Net.PostHTTPRequestEventArgs($p0,$p1);ScriptFX.Net.HTTPRequestManager.$1.invoke(null,$0);}if((!ScriptFX.Net.HTTPRequestManager.$3.length)&&(ScriptFX.Net.HTTPRequestManager.$4)){ScriptFX.Application.current.remove_idle(ScriptFX.Net.HTTPRequestManager.$4);ScriptFX.Net.HTTPRequestManager.$4=null;}}
ScriptFX.Net.HTTPRequestManager.$8=function($p0,$p1){if(!ScriptFX.Net.HTTPRequestManager.$3.length){return;}var $0=null;var $1=(new Date()).getTime();var $enum1=ScriptFX.Net.HTTPRequestManager.$3.getEnumerator();while($enum1.moveNext()){var $2=$enum1.get_current();var $3=$2.get_timeStamp().getTime();var $4=$2.get_timeout();if(!$4){$4=ScriptFX.Net.HTTPRequestManager.$2;if(!$4){continue;}}if(($1-$3)>$4){if(!$0){$0=[];}$0.add($2);}}if($0){var $enum2=$0.getEnumerator();while($enum2.moveNext()){var $5=$enum2.get_current();ScriptFX.Net.HTTPRequestManager.$5($5,true);}}}
ScriptFX.Net.HTTPRequestManager.$9=function($p0,$p1){ScriptFX.Net.HTTPRequestManager.$7($p0,$p1,false);}
ScriptFX.Net.HTTPTransport=function(request){this.$0=request;}
ScriptFX.Net.HTTPTransport.createURI=function(uri,transportType,parameters){if(!parameters){return'{__nullParams: true, __uri:\''+uri+'\', __transportType: '+transportType.get_fullName()+'}';}else{parameters['__uri']=uri;parameters['__transportType']=transportType.get_fullName();return ScriptFX.JSON.serialize(parameters);}}
ScriptFX.Net.HTTPTransport.prototype={$0:null,get_parameters:function(){return this.$0.get_$10();},get_request:function(){return this.$0;},getMethod:function(){return Enum.toString(ScriptFX.Net.HTTPVerb,this.$0.get_verb());},onCompleted:function(response){ScriptFX.Net.HTTPRequestManager.$9(this.$0,response);}}
ScriptFX.Net.PostHTTPRequestEventArgs=function(request,response){ScriptFX.Net.PostHTTPRequestEventArgs.constructBase(this);this.$1_0=request;this.$1_1=response;}
ScriptFX.Net.PostHTTPRequestEventArgs.prototype={$1_0:null,$1_1:null,get_request:function(){return this.$1_0;},get_response:function(){return this.$1_1;}}
ScriptFX.Net.PreHTTPRequestEventArgs=function(request){ScriptFX.Net.PreHTTPRequestEventArgs.constructBase(this);this.$1_0=request;}
ScriptFX.Net.PreHTTPRequestEventArgs.prototype={$1_0:null,$1_1:null,$1_2:false,get_isSuppressed:function(){return this.$1_2;},get_request:function(){return this.$1_0;},get_response:function(){return this.$1_1;},suppressRequest:function(response){this.$1_2=true;this.$1_1=response;}}
ScriptFX.Net._Core$2=function(request,xmlHTTP){this.$3=new Date();this.$0=request;this.$1=xmlHTTP;}
ScriptFX.Net._Core$2.prototype={$0:null,$1:null,$2:null,$3:null,$4:null,$5:null,$6:null,get_contentLength:function(){return this.getText().length;},get_contentType:function(){return this.$1.getResponseHeader('Content-Type');},get_headers:function(){if(!this.$2){var $0=this.$1.getAllResponseHeaders();var $1=$0.split('\n');this.$2={};var $enum1=$1.getEnumerator();while($enum1.moveNext()){var $2=$enum1.get_current();var $3=$2.indexOf(':');this.$2[$2.substr(0,$3)]=$2.substr($3+1).trim();}}return this.$2;},get_request:function(){return this.$0;},get_statusCode:function(){return this.$1.status;},get_statusText:function(){return this.$1.statusText;},get_timeStamp:function(){return this.$3;},getHeader:function($p0){return this.$1.getResponseHeader($p0);},getObject:function(){if(!this.$5){this.$5=ScriptFX.JSON.deserialize(this.getText());}return this.$5;},getText:function(){if(!this.$4){this.$4=this.$1.responseText;}return this.$4;},getXML:function(){if(!this.$6){var $0=this.$1.responseXML;if((!$0)||(!$0.documentElement)){try{$0=XMLDocumentParser.parse(this.$1.responseText);if(($0)&&($0.documentElement)){this.$6=$0;}}catch($1){}}else{this.$6=$0;if(ScriptFX.Application.current.get_isIE()){$0.setProperty('SelectionLanguage','XPath');}}}return this.$6;}}
ScriptFX.Net._Core$3=function(request){ScriptFX.Net._Core$3.constructBase(this,[request]);}
ScriptFX.Net._Core$3.prototype={$1:null,abort:function(){if(this.$1){this.$1.onreadystatechange=Delegate.Null;this.$1.abort();this.$1=null;}},dispose:function(){this.abort();},invoke:function(){var $0=this.get_request();this.$1=new XMLHttpRequest();this.$1.onreadystatechange=Delegate.create(this,this.$2);if(!this.get_request().get_hasCredentials()){this.$1.open(this.getMethod(),$0.get_URI(),true);}else{this.$1.open(this.getMethod(),$0.get_URI(),true,$0.get_userName(),$0.get_password());}var $1=($0.get_hasHeaders())?$0.get_headers():null;if($1){var $dict1=$1;for(var $key2 in $dict1){var $3={key:$key2,value:$dict1[$key2]};this.$1.setRequestHeader($3.key,$3.value);}}var $2=$0.get_content();if(($2)&&((!$1)||(!$1['Content-Type']))){this.$1.setRequestHeader('Content-Type','application/x-www-form-urlencoded');}this.$1.send($2);},$2:function(){if(this.$1.readyState===4){var $0=new ScriptFX.Net._Core$2(this.get_request(),this.$1);this.$1.onreadystatechange=Delegate.Null;this.$1=null;this.onCompleted($0);}}}
Type.createNamespace('ScriptFX.UI');ScriptFX.UI.AnimationStopState=function(){};ScriptFX.UI.AnimationStopState.prototype={complete:0,abort:1,revert:2}
ScriptFX.UI.AnimationStopState.createEnum('ScriptFX.UI.AnimationStopState',false);ScriptFX.UI.$create_Bounds=function(left,top,width,height){var $o={};$o.left=left;$o.top=top;$o.width=width;$o.height=height;return $o;}
ScriptFX.UI.$create_DragDropData=function(mode,dataType,data){var $o={};$o.mode=mode;$o.dataType=dataType;$o.data=data;return $o;}
ScriptFX.UI.DragMode=function(){};ScriptFX.UI.DragMode.prototype={move:0,copy:1}
ScriptFX.UI.DragMode.createEnum('ScriptFX.UI.DragMode',false);ScriptFX.UI.IAction=function(){};ScriptFX.UI.IAction.createInterface('ScriptFX.UI.IAction');ScriptFX.UI.IDragDrop=function(){};ScriptFX.UI.IDragDrop.createInterface('ScriptFX.UI.IDragDrop');ScriptFX.UI.IDragSource=function(){};ScriptFX.UI.IDragSource.createInterface('ScriptFX.UI.IDragSource');ScriptFX.UI.IDropTarget=function(){};ScriptFX.UI.IDropTarget.createInterface('ScriptFX.UI.IDropTarget');ScriptFX.UI.IEditableText=function(){};ScriptFX.UI.IEditableText.createInterface('ScriptFX.UI.IEditableText');ScriptFX.UI.IStaticText=function(){};ScriptFX.UI.IStaticText.createInterface('ScriptFX.UI.IStaticText');ScriptFX.UI.IToggle=function(){};ScriptFX.UI.IToggle.createInterface('ScriptFX.UI.IToggle');ScriptFX.UI.IValidator=function(){};ScriptFX.UI.IValidator.createInterface('ScriptFX.UI.IValidator');ScriptFX.UI.Key=function(){};ScriptFX.UI.Key.prototype={backspace:8,tab:9,enter:13,escape:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,del:127}
ScriptFX.UI.Key.createEnum('ScriptFX.UI.Key',false);ScriptFX.UI.$create_Location=function(left,top){var $o={};$o.left=left;$o.top=top;return $o;}
ScriptFX.UI.$create_OverlayOptions=function(cssClass){var $o={};$o.cssClass=cssClass;$o.fadeInOutInterval=250;$o.opacity=0.75;return $o;}
ScriptFX.UI.PopupMode=function(){};ScriptFX.UI.PopupMode.prototype={center:0,anchorTopLeft:1,anchorTopRight:2,anchorBottomRight:3,anchorBottomLeft:4,alignTopLeft:5,alignTopRight:6,alignBottomRight:7,alignBottomLeft:8}
ScriptFX.UI.PopupMode.createEnum('ScriptFX.UI.PopupMode',false);ScriptFX.UI.$create_PopupOptions=function(referenceElement,mode){var $o={};$o.referenceElement=referenceElement;$o.mode=mode;$o.id=null;$o.xOffset=0;$o.yOffset=0;return $o;}
ScriptFX.UI.$create_Size=function(width,height){var $o={};$o.width=width;$o.height=height;return $o;}
ScriptFX.UI.Animation=function(domElement){if(!domElement){domElement=document.documentElement;}this.$0=domElement;this.$1=1;ScriptFX.Application.current.registerDisposableObject(this);}
ScriptFX.UI.Animation.prototype={$0:null,$1:0,$2:false,$3:0,$4:false,$5:false,$6:false,$7:0,$8:0,$9:false,add_repeating:function(value){this.$A=Delegate.combine(this.$A,value);},remove_repeating:function(value){this.$A=Delegate.remove(this.$A,value);},$A:null,add_starting:function(value){this.$B=Delegate.combine(this.$B,value);},remove_starting:function(value){this.$B=Delegate.remove(this.$B,value);},$B:null,add_stopped:function(value){this.$C=Delegate.combine(this.$C,value);},remove_stopped:function(value){this.$C=Delegate.remove(this.$C,value);},$C:null,get_autoReverse:function(){return this.$2;},set_autoReverse:function(value){this.$2=value;return value;},get_completed:function(){return this.$4;},get_domElement:function(){return this.$0;},get_isPlaying:function(){return this.$5;},get_isReversed:function(){return this.$9;},get_repeatCount:function(){return this.$1;},set_repeatCount:function(value){this.$1=value;return value;},get_repeatDelay:function(){return this.$3;},set_repeatDelay:function(value){this.$3=value;return value;},get_repetitions:function(){return this.$7;},dispose:function(){if(this.$5){this.stop(1);}if(this.$0){this.$0=null;ScriptFX.Application.current.unregisterDisposableObject(this);}},$D:function($p0){if(this.$B){this.$B.invoke(this,EventArgs.Empty);}this.performSetup();this.$5=true;this.$7=1;this.$9=$p0;this.playCore();},$E:function($p0,$p1){this.stopCore($p0,$p1);this.$4=$p0;this.$5=false;this.performCleanup();if(this.$C){this.$C.invoke(this,EventArgs.Empty);}},$F:function($p0){if(this.$6){if((this.$3)&&((this.$8+this.$3)>$p0)){return false;}}var $0=this.progressCore(this.$6,$p0);this.$6=false;if($0&&((!this.$1)||(this.$1>this.$7))){$0=false;this.$7++;if(this.$A){var $1=new ScriptFX.CancelEventArgs();this.$A.invoke(this,$1);$0=$1.get_canceled();}if(!$0){this.$6=true;if(this.$2){this.$9=!this.$9;}this.$8=$p0;this.performRepetition(this.$9);}}return $0;},performCleanup:function(){},performRepetition:function(reversed){},performSetup:function(){},play:function(){this.$4=false;ScriptFX.UI.AnimationManager.$4(this);},stop:function(stopState){ScriptFX.UI.AnimationManager.$5(this,stopState);}}
ScriptFX.UI.AnimationManager=function(){}
ScriptFX.UI.AnimationManager.get_FPS=function(){return ScriptFX.UI.AnimationManager.$0;}
ScriptFX.UI.AnimationManager.set_FPS=function(value){ScriptFX.UI.AnimationManager.$0=value;return value;}
ScriptFX.UI.AnimationManager.$3=function(){ScriptFX.UI.AnimationManager.$2=0;if(!ScriptFX.UI.AnimationManager.$1.length){return;}var $0=(new Date()).getTime();var $1=ScriptFX.UI.AnimationManager.$1;var $2=[];ScriptFX.UI.AnimationManager.$1=null;var $enum1=$1.getEnumerator();while($enum1.moveNext()){var $3=$enum1.get_current();var $4=$3.$F($0);if($4){$3.$E(true,0);}else{$2.add($3);}}if($2.length){ScriptFX.UI.AnimationManager.$1=$2;if(!ScriptFX.UI.AnimationManager.$2){ScriptFX.UI.AnimationManager.$2=window.setTimeout(Delegate.create(null,ScriptFX.UI.AnimationManager.$3),1000/ScriptFX.UI.AnimationManager.$0);}}}
ScriptFX.UI.AnimationManager.$4=function($p0){if(!ScriptFX.UI.AnimationManager.$1){ScriptFX.UI.AnimationManager.$1=[];}ScriptFX.UI.AnimationManager.$1.add($p0);$p0.$D(false);if(!ScriptFX.UI.AnimationManager.$2){ScriptFX.UI.AnimationManager.$2=window.setTimeout(Delegate.create(null,ScriptFX.UI.AnimationManager.$3),1000/ScriptFX.UI.AnimationManager.$0);}}
ScriptFX.UI.AnimationManager.$5=function($p0,$p1){$p0.$E(false,$p1);ScriptFX.UI.AnimationManager.$1.remove($p0);}
ScriptFX.UI.AnimationSequence=function(animations){ScriptFX.UI.AnimationSequence.constructBase(this,[null]);this.$10=animations;this.$12=-1;}
ScriptFX.UI.AnimationSequence.prototype={$10:null,$11:0,$12:0,$13:false,$14:0,get_successionDelay:function(){return this.$11;},set_successionDelay:function(value){this.$11=value;return value;},playCore:function(){if(!this.get_isReversed()){this.$12=0;}else{this.$12=this.$10.length-1;}this.$10[this.$12].$D(this.get_isReversed());},progressCore:function(startRepetition,timeStamp){if(startRepetition){if(!this.get_isReversed()){this.$12=0;}else{this.$12=this.$10.length-1;}this.$13=true;}var $0=this.$10[this.$12];if(this.$13){if((this.$11)&&((this.$14+this.$11)>timeStamp)){return false;}this.$13=false;$0.$D(this.get_isReversed());}var $1=$0.$F(timeStamp);if($1){$0.$E(true,0);if(!this.get_isReversed()){this.$12++;}else{this.$12--;}this.$13=true;this.$14=timeStamp;}return $1&&((this.$12===this.$10.length)||(this.$12===-1));},stopCore:function(completed,stopState){if(!completed){var $0=this.$10[this.$12];$0.$E(false,stopState);}}}
ScriptFX.UI.Behavior=function(domElement,id){ScriptFX.Application.current.registerDisposableObject(this);this.$0=domElement;this.$1=id;if(!String.isNullOrEmpty(id)){if(id==='control'){var $1=domElement[id];if(($1)&&(Type.getInstanceType($1)===ScriptFX.UI._Core$4)){delete domElement.control;ScriptFX.Application.current.unregisterDisposableObject($1);this.$3=$1.get_$5();}}domElement[id]=this;}if(id!=='control'){var $2=domElement.control;if(!$2){$2=new ScriptFX.UI._Core$4(domElement);}}var $0=domElement._behaviors;if(!$0){$0=[];domElement._behaviors=$0;}$0.add(this);}
ScriptFX.UI.Behavior.getBehavior=function(domElement,type){var $0=domElement._behaviors;if($0){var $enum1=$0.getEnumerator();while($enum1.moveNext()){var $1=$enum1.get_current();if(type.isAssignableFrom(Type.getInstanceType($1))){return $1;}}}return null;}
ScriptFX.UI.Behavior.getBehaviors=function(domElement,type){var $0=domElement._behaviors;if(isNullOrUndefined($0)||(!$0.length)){return null;}if(!type){return $0.clone();}return $0.filter(Delegate.create(null,function($p1_0){return type.isAssignableFrom(Type.getInstanceType($p1_0));}));}
ScriptFX.UI.Behavior.getNamedBehavior=function(domElement,id){return domElement[id];}
ScriptFX.UI.Behavior.prototype={$0:null,$1:null,$2:null,$3:null,$4:false,get_domElement:function(){return this.$0;},get_domEvents:function(){if(!this.$2){this.$2=new ScriptFX.UI.DOMEventList(this.$0);}return this.$2;},get_events:function(){if(!this.$3){this.$3=new ScriptFX.EventList();}return this.$3;},get_$5:function(){return this.$3;},get_isDisposed:function(){return(!this.$0);},get_isInitializing:function(){return this.$4;},add_propertyChanged:function(value){this.get_events().addHandler('PropertyChanged',value);},remove_propertyChanged:function(value){this.get_events().removeHandler('PropertyChanged',value);},beginInitialize:function(){this.$4=true;},dispose:function(){if(this.$2){this.$2.dispose();}if(this.$0){if(this.$1){if(ScriptFX.Application.current.get_isIE()){this.$0.removeAttribute(this.$1);}else{delete this.$0[this.$1];}}var $0=this.$0._behaviors;$0.remove(this);this.$0=null;ScriptFX.Application.current.unregisterDisposableObject(this);}},endInitialize:function(){this.$4=false;},raisePropertyChanged:function(propertyName){var $0=this.get_events().getHandler('PropertyChanged');if($0){$0.invoke(this,new ScriptFX.PropertyChangedEventArgs(propertyName));}}}
ScriptFX.UI.Color=function(red,green,blue){this.$0=red;this.$1=green;this.$2=blue;}
ScriptFX.UI.Color.format=function(red,green,blue){return String.format('#{0:X2}{1:X2}{2:X2}',red,green,blue);}
ScriptFX.UI.Color.parse=function(s){if(String.isNullOrEmpty(s)){return null;}if((s.length===7)&&s.startsWith('#')){var $0=parseInt(s.substr(1,2),16);var $1=parseInt(s.substr(3,2),16);var $2=parseInt(s.substr(5,2),16);return new ScriptFX.UI.Color($0,$1,$2);}else if(s.startsWith('rgb(')&&s.endsWith(')')){var $3=s.substring(4,s.length-1).split(',');if($3.length===3){return new ScriptFX.UI.Color(parseInt($3[0].trim()),parseInt($3[1].trim()),parseInt($3[2].trim()));}}return null;}
ScriptFX.UI.Color.prototype={$0:0,$1:0,$2:0,get_blue:function(){return this.$2;},get_green:function(){return this.$1;},get_red:function(){return this.$0;},toString:function(){return ScriptFX.UI.Color.format(this.$0,this.$1,this.$2);}}
ScriptFX.UI.Control=function(domElement){ScriptFX.UI.Control.constructBase(this,[domElement,'control']);}
ScriptFX.UI.Control.getControl=function(domElement){return ScriptFX.UI.Behavior.getNamedBehavior(domElement,'control');}
ScriptFX.UI.Control.prototype={add_disposing:function(value){this.get_events().addHandler('disposing',value);},remove_disposing:function(value){this.get_events().removeHandler('disposing',value);},dispose:function(){var $0=this.get_domElement();if($0){var $1=this.get_events().getHandler('disposing');if($1){$1.invoke(this,EventArgs.Empty);}var $2=ScriptFX.UI.Behavior.getBehaviors($0,null);if($2.length>1){var $enum1=$2.getEnumerator();while($enum1.moveNext()){var $3=$enum1.get_current();if($3!==this){$3.dispose();}}}}ScriptFX.UI.Control.callBase(this,'dispose');}}
ScriptFX.UI.DOMEventList=function(element){this.$0=element;this.$1={};}
ScriptFX.UI.DOMEventList.prototype={$0:null,$1:null,attach:function(eventName,handler){this.$0.attachEvent(eventName,handler);this.$1[eventName]=handler;},detach:function(eventName){var $0=this.$1[eventName];if($0){this.$0.detachEvent(eventName,$0);delete this.$1[eventName];return true;}return false;},dispose:function(){if(this.$0){var $dict1=this.$1;for(var $key2 in $dict1){var $0={key:$key2,value:$dict1[$key2]};this.$0.detachEvent($0.key,$0.value);}this.$0=null;this.$1=null;}},isAttached:function(eventName){return(this.$1[eventName])?true:false;}}
ScriptFX.UI.DragDropEventArgs=function(dataObject){ScriptFX.UI.DragDropEventArgs.constructBase(this);this.$1_0=dataObject;}
ScriptFX.UI.DragDropEventArgs.prototype={$1_0:null,get_dataObject:function(){return this.$1_0;}}
ScriptFX.UI.DragDropManager=function(){}
ScriptFX.UI.DragDropManager.get_canDragDrop=function(){return(ScriptFX.UI.DragDropManager.$0);}
ScriptFX.UI.DragDropManager.get_supportsDataTransfer=function(){return ScriptFX.UI.DragDropManager.$0.get_supportsDataTransfer();}
ScriptFX.UI.DragDropManager.add_dragDropEnding=function(value){ScriptFX.UI.DragDropManager.$3=Delegate.combine(ScriptFX.UI.DragDropManager.$3,value);}
ScriptFX.UI.DragDropManager.remove_dragDropEnding=function(value){ScriptFX.UI.DragDropManager.$3=Delegate.remove(ScriptFX.UI.DragDropManager.$3,value);}
ScriptFX.UI.DragDropManager.add_dragDropStarting=function(value){ScriptFX.UI.DragDropManager.$2=Delegate.combine(ScriptFX.UI.DragDropManager.$2,value);}
ScriptFX.UI.DragDropManager.remove_dragDropStarting=function(value){ScriptFX.UI.DragDropManager.$2=Delegate.remove(ScriptFX.UI.DragDropManager.$2,value);}
ScriptFX.UI.DragDropManager.$5=function(){if(ScriptFX.UI.DragDropManager.$3){ScriptFX.UI.DragDropManager.$3.invoke(null,new ScriptFX.UI.DragDropEventArgs(ScriptFX.UI.DragDropManager.$4));}ScriptFX.UI.DragDropManager.$4=null;}
ScriptFX.UI.DragDropManager.registerDragDropImplementation=function(dragDrop){ScriptFX.UI.DragDropManager.$0=dragDrop;}
ScriptFX.UI.DragDropManager.registerDropTarget=function(target){ScriptFX.UI.DragDropManager.$1.add(target);}
ScriptFX.UI.DragDropManager.startDragDrop=function(data,dragVisual,dragOffset,source,context){if(ScriptFX.UI.DragDropManager.$4){return false;}var $0=[];var $enum1=ScriptFX.UI.DragDropManager.$1.getEnumerator();while($enum1.moveNext()){var $1=$enum1.get_current();if($1.supportsDataObject(data)){$0.add($1);}}if(!$0.length){return false;}ScriptFX.UI.DragDropManager.$4=data;if(ScriptFX.UI.DragDropManager.$2){ScriptFX.UI.DragDropManager.$2.invoke(null,new ScriptFX.UI.DragDropEventArgs(data));}ScriptFX.UI.DragDropManager.$0.dragDrop(new ScriptFX.UI._Core$0(source),context,$0,dragVisual,dragOffset,ScriptFX.UI.DragDropManager.$4);return true;}
ScriptFX.UI.DragDropManager.unregisterDropTarget=function(target){ScriptFX.UI.DragDropManager.$1.remove(target);}
ScriptFX.UI._Core$0=function(actualSource){this.$0=actualSource;}
ScriptFX.UI._Core$0.prototype={$0:null,get_domElement:function(){return this.$0.get_domElement();},onDragStart:function($p0){if(this.$0){this.$0.onDragStart($p0);}},onDrag:function($p0){if(this.$0){this.$0.onDrag($p0);}},onDragEnd:function($p0,$p1){if(this.$0){this.$0.onDragEnd($p0,$p1);}ScriptFX.UI.DragDropManager.$5();}}
ScriptFX.UI.Element=function(){}
ScriptFX.UI.Element.addCSSClass=function(element,className){var $0=element.className;if($0.indexOf(className)<0){element.className=$0+' '+className;}}
ScriptFX.UI.Element.containsCSSClass=function(element,className){return element.className.split(' ').contains(className);}
ScriptFX.UI.Element.getBounds=function(element){var $0=ScriptFX.UI.Element.getLocation(element);return ScriptFX.UI.$create_Bounds($0.left,$0.top,element.offsetWidth,element.offsetHeight);}
ScriptFX.UI.Element.getLocation=function(element){var $0=0;var $1=0;for(var $2=element;$2;$2=$2.offsetParent){$0+=$2.offsetLeft;$1+=$2.offsetTop;}return ScriptFX.UI.$create_Location($0,$1);}
ScriptFX.UI.Element.getSize=function(element){return ScriptFX.UI.$create_Size(element.offsetWidth,element.offsetHeight);}
ScriptFX.UI.Element.removeCSSClass=function(element,className){var $0=' '+element.className+' ';var $1=$0.indexOf(' '+className+' ');if($1>=0){var $2=$0.substr(0,$1)+' '+$0.substr($1+className.length+1);element.className=$2;}}
ScriptFX.UI.Element.setLocation=function(element,location){element.style.left=location.left+'px';element.style.top=location.top+'px';}
ScriptFX.UI.Element.setSize=function(element,size){element.style.width=size.width+'px';element.style.height=size.height+'px';}
ScriptFX.UI.FadeEffect=function(domElement,duration,opacity){ScriptFX.UI.FadeEffect.constructBase(this,[domElement,duration]);this.$14=opacity;}
ScriptFX.UI.FadeEffect.prototype={$13:false,$14:0,get_isFadingIn:function(){return this.$13;},fadeIn:function(){if(this.get_isPlaying()){this.stop(0);}this.$13=true;this.play();},fadeOut:function(){if(this.get_isPlaying()){this.stop(0);}this.$13=false;this.play();},performCleanup:function(){ScriptFX.UI.FadeEffect.callBase(this,'performCleanup');if(!this.$13){this.$15(0);this.get_domElement().style.display='none';}},performSetup:function(){ScriptFX.UI.FadeEffect.callBase(this,'performSetup');if(this.$13){this.$15(0);this.get_domElement().style.display='';}},performTweening:function(frame){if(this.$13){this.$15(this.$14*frame);}else{this.$15(this.$14*(1-frame));}},$15:function($p0){if(ScriptFX.Application.current.get_isIE()){this.get_domElement().style.filter='alpha(opacity='+($p0*100)+')';}else{this.get_domElement().style.opacity=$p0.toString();}}}
ScriptFX.UI._Core$4=function(domElement){ScriptFX.UI._Core$4.constructBase(this,[domElement]);}
ScriptFX.UI.OverlayBehavior=function(domElement,options){ScriptFX.UI.OverlayBehavior.constructBase(this,[domElement,options.id]);this.$7=document.createElement('div');this.$7.className=options.cssClass;var $0=this.$7.style;$0.display='none';$0.top='0px';$0.left='0px';$0.width='100%';if(ScriptFX.Application.current.get_isIE()&&(ScriptFX.Application.current.get_host().get_majorVersion()<7)){$0.position='absolute';}else{this.$8=true;$0.position='fixed';$0.height='100%';}document.body.appendChild(this.$7);if(options.fadeInOutInterval){this.$9=new ScriptFX.UI.FadeEffect(this.$7,options.fadeInOutInterval,options.opacity);this.$9.set_easingFunction(Delegate.create(null,ScriptFX.UI.TimedAnimation.easeInOut));this.$9.add_stopped(Delegate.create(this,this.$C));}}
ScriptFX.UI.OverlayBehavior.prototype={$7:null,$8:false,$9:null,$A:null,$B:false,get_isVisible:function(){return this.$B;},add_visibilityChanged:function(value){this.get_events().addHandler(ScriptFX.UI.OverlayBehavior.$6,value);},remove_visibilityChanged:function(value){this.get_events().removeHandler(ScriptFX.UI.OverlayBehavior.$6,value);},dispose:function(){if(this.$9){this.$9.dispose();this.$9=null;}if(this.$A){window.detachEvent('onresize',this.$A);this.$A=null;}ScriptFX.UI.OverlayBehavior.callBase(this,'dispose');},hide:function(){if((!this.$B)||this.$9.get_isPlaying()){return;}if(this.$A){window.detachEvent('onresize',this.$A);this.$A=null;}if(this.$9){this.$9.fadeOut();}else{this.$7.style.display='none';this.$B=false;var $0=this.get_events().getHandler(ScriptFX.UI.OverlayBehavior.$6);if($0){$0.invoke(this,EventArgs.Empty);}}},$C:function($p0,$p1){this.$B=this.$9.get_isFadingIn();var $0=this.get_events().getHandler(ScriptFX.UI.OverlayBehavior.$6);if($0){$0.invoke(this,EventArgs.Empty);}},$D:function(){this.$7.style.height=document.documentElement.offsetHeight+'px';},show:function(){if(this.$B||this.$9.get_isPlaying()){return;}if(!this.$8){this.$7.style.height=document.documentElement.offsetHeight+'px';this.$A=Delegate.create(this,this.$D);window.attachEvent('onresize',this.$A);}if(this.$9){this.$9.fadeIn();}else{this.$7.style.display='';this.$B=true;var $0=this.get_events().getHandler(ScriptFX.UI.OverlayBehavior.$6);if($0){$0.invoke(this,EventArgs.Empty);}}}}
ScriptFX.UI.PopupBehavior=function(domElement,options){ScriptFX.UI.PopupBehavior.constructBase(this,[domElement,options.id]);this.$6=options;domElement.style.position='absolute';domElement.style.display='none';}
ScriptFX.UI.PopupBehavior.prototype={$6:null,$7:null,dispose:function(){if(this.get_domElement()){this.hide();}ScriptFX.UI.PopupBehavior.callBase(this,'dispose');},hide:function(){this.get_domElement().style.display='none';if(this.$7){this.$7.parentNode.removeChild(this.$7);this.$7=null;}},show:function(){var $0=this.get_domElement().offsetParent;if(!$0){$0=document.documentElement;}this.get_domElement().style.display='block';var $1=0;var $2=0;var $3=1;var $4=1;var $5=false;var $6=ScriptFX.UI.Element.getBounds($0);var $7=ScriptFX.UI.Element.getBounds(this.get_domElement());var $8=ScriptFX.UI.Element.getBounds(this.$6.referenceElement);var $9=$8.left-$6.left;var $A=$8.top-$6.top;switch(this.$6.mode){case 0:$1=Math.round($8.width/2-$7.width/2);$2=Math.round($8.height/2-$7.height/2);break;case 1:$1=0;$2=-$7.height;break;case 2:$1=$8.width-$7.width;$2=-$7.height;break;case 3:$1=$8.width-$7.width;$2=$8.height;break;case 4:$1=0;$2=$8.height;break;case 5:$1=$8.left;$2=$8.top;$5=true;break;case 6:$1=$8.left+$8.width-$7.width;$2=$8.top;$3=-1;$5=true;break;case 7:$1=$8.left+$8.width-$7.width;$2=$8.top+$8.height-$7.height;$3=-1;$4=-1;$5=true;break;case 8:$1=$8.left;$2=$8.top+$8.height-$7.height;$4=-1;$5=true;break;}if(!$5){$1+=$9+this.$6.xOffset;$2+=$A+this.$6.yOffset;}else{$1+=$9+this.$6.xOffset*$3;$2+=$A+this.$6.yOffset*$4;}var $B=document.body.clientWidth;if($1+$7.width>$B-2){$1-=($1+$7.width-$B+2);}if($1<0){$1=2;}if($2<0){$2=2;}ScriptFX.UI.Element.setLocation(this.get_domElement(),ScriptFX.UI.$create_Location($1,$2));var $C=ScriptFX.Application.current.get_host();if(($C.get_name()===1)&&($C.get_majorVersion()<7)){this.$7=document.createElement('IFRAME');this.$7.src='javascript:false;';this.$7.scrolling='no';this.$7.style.position='absolute';this.$7.style.display='block';this.$7.style.border='none';this.$7.style.filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';this.$7.style.left=$1+'px';this.$7.style.top=$2+'px';this.$7.style.width=$7.width+'px';this.$7.style.height=$7.height+'px';this.$7.style.zIndex=1;this.get_domElement().parentNode.insertBefore(this.$7,this.get_domElement());}}}
ScriptFX.UI.TimedAnimation=function(domElement,duration){ScriptFX.UI.TimedAnimation.constructBase(this,[domElement]);this.$10=duration;}
ScriptFX.UI.TimedAnimation.easeIn=function(t){return t*t;}
ScriptFX.UI.TimedAnimation.easeInOut=function(t){t=t*2;if(t<1){return t*t/2;}return-((--t)*(t-2)-1)/2;}
ScriptFX.UI.TimedAnimation.easeOut=function(t){return-t*(t-2);}
ScriptFX.UI.TimedAnimation.prototype={$10:0,$11:null,$12:0,get_duration:function(){return this.$10;},set_duration:function(value){this.$10=value;return value;},get_easingFunction:function(){return this.$11;},set_easingFunction:function(value){this.$11=value;return value;},playCore:function(){this.$12=(new Date()).getTime();this.progressCore(false,this.$12);},progressCore:function(startRepetition,timeStamp){var $0=0;var $1=false;if(!startRepetition){$0=(timeStamp-this.$12)/this.$10;if(!this.get_isReversed()){$1=($0>=1);$0=Math.min(1,$0);}else{$0=1-$0;$1=($0<=0);$0=Math.max(0,$0);}if((!$1)&&(this.$11)){$0=this.$11.invoke($0);}}else{this.$12=timeStamp;if(this.get_isReversed()){$0=1;}}this.performTweening($0);return $1;},stopCore:function(completed,stopState){if(!completed){if(!stopState){this.performTweening(1);}else if(stopState===2){this.performTweening(0);}}}}
ScriptFX.Application.createClass('ScriptFX.Application',null,IServiceProvider,IServiceContainer,ScriptFX.IEventManager);ScriptFX.CancelEventArgs.createClass('ScriptFX.CancelEventArgs',EventArgs);ScriptFX.CollectionChangedEventArgs.createClass('ScriptFX.CollectionChangedEventArgs',EventArgs);ScriptFX.ApplicationUnloadingEventArgs.createClass('ScriptFX.ApplicationUnloadingEventArgs',EventArgs);ScriptFX.HistoryManager.createClass('ScriptFX.HistoryManager',null,IDisposable);ScriptFX.HistoryEventArgs.createClass('ScriptFX.HistoryEventArgs',EventArgs);ScriptFX.HostInfo.createClass('ScriptFX.HostInfo');ScriptFX.EventList.createClass('ScriptFX.EventList');ScriptFX.JSON.createClass('ScriptFX.JSON');ScriptFX.PropertyChangedEventArgs.createClass('ScriptFX.PropertyChangedEventArgs',EventArgs);ScriptFX.ObservableCollection.createClass('ScriptFX.ObservableCollection',null,IDisposable,IArray,IEnumerable,ScriptFX.INotifyCollectionChanged);ScriptFX.Net.HTTPRequest.createClass('ScriptFX.Net.HTTPRequest',null,IDisposable);ScriptFX.Net.HTTPRequestManager.createClass('ScriptFX.Net.HTTPRequestManager');ScriptFX.Net.HTTPTransport.createClass('ScriptFX.Net.HTTPTransport',null,IDisposable);ScriptFX.Net.PostHTTPRequestEventArgs.createClass('ScriptFX.Net.PostHTTPRequestEventArgs',EventArgs);ScriptFX.Net.PreHTTPRequestEventArgs.createClass('ScriptFX.Net.PreHTTPRequestEventArgs',EventArgs);ScriptFX.Net._Core$2.createClass('ScriptFX.Net._Core$2',null,ScriptFX.Net.IHTTPResponse);ScriptFX.Net._Core$3.createClass('ScriptFX.Net._Core$3',ScriptFX.Net.HTTPTransport);ScriptFX.UI.Animation.createClass('ScriptFX.UI.Animation',null,IDisposable);ScriptFX.UI.AnimationManager.createClass('ScriptFX.UI.AnimationManager');ScriptFX.UI.AnimationSequence.createClass('ScriptFX.UI.AnimationSequence',ScriptFX.UI.Animation);ScriptFX.UI.Behavior.createClass('ScriptFX.UI.Behavior',null,IDisposable,ScriptFX.ISupportInitialize,ScriptFX.INotifyPropertyChanged);ScriptFX.UI.Color.createClass('ScriptFX.UI.Color');ScriptFX.UI.Control.createClass('ScriptFX.UI.Control',ScriptFX.UI.Behavior,ScriptFX.INotifyDisposing);ScriptFX.UI.DOMEventList.createClass('ScriptFX.UI.DOMEventList',null,IDisposable);ScriptFX.UI.DragDropEventArgs.createClass('ScriptFX.UI.DragDropEventArgs',EventArgs);ScriptFX.UI.DragDropManager.createClass('ScriptFX.UI.DragDropManager');ScriptFX.UI._Core$0.createClass('ScriptFX.UI._Core$0',null,ScriptFX.UI.IDragSource);ScriptFX.UI.Element.createClass('ScriptFX.UI.Element');ScriptFX.UI.TimedAnimation.createClass('ScriptFX.UI.TimedAnimation',ScriptFX.UI.Animation);ScriptFX.UI.FadeEffect.createClass('ScriptFX.UI.FadeEffect',ScriptFX.UI.TimedAnimation);ScriptFX.UI._Core$4.createClass('ScriptFX.UI._Core$4',ScriptFX.UI.Control);ScriptFX.UI.OverlayBehavior.createClass('ScriptFX.UI.OverlayBehavior',ScriptFX.UI.Behavior);ScriptFX.UI.PopupBehavior.createClass('ScriptFX.UI.PopupBehavior',ScriptFX.UI.Behavior);ScriptFX.Application.current=new ScriptFX.Application();ScriptFX.JSON.$0=null;ScriptFX.Net.HTTPRequestManager.$0=null;ScriptFX.Net.HTTPRequestManager.$1=null;ScriptFX.Net.HTTPRequestManager.$2=0;ScriptFX.Net.HTTPRequestManager.$3=[];ScriptFX.Net.HTTPRequestManager.$4=null;ScriptFX.UI.AnimationManager.$0=100;ScriptFX.UI.AnimationManager.$1=null;ScriptFX.UI.AnimationManager.$2=0;ScriptFX.UI.DragDropManager.$0=null;ScriptFX.UI.DragDropManager.$1=[];ScriptFX.UI.DragDropManager.$2=null;ScriptFX.UI.DragDropManager.$3=null;ScriptFX.UI.DragDropManager.$4=null;ScriptFX.UI.OverlayBehavior.$6='visibilityChanged';Type.createNamespace('Rcd.Air');Rcd.Air.JakeExpected=function(){};Rcd.Air.JakeExpected.prototype={any:0,exactlyOne:1,nonZero:2}
Rcd.Air.JakeExpected.createEnum('Rcd.Air.JakeExpected',false);Rcd.Air._EasyMouseScroll=function(){}
Rcd.Air._EasyMouseScroll.$0=function($p0){var $0=Delegate.create(null,function($p1_0){if(!$p0){return;}if(!$p1_0){$p1_0=window.event;}var $1_0=0;var $1_1=false;var $1_2=$p1_0.wheelDelta;if(!isUndefined($1_2)){$1_0=Number.parse($1_2.toString());if(Rcd.Air._UserAgent.get_$7()){if(Rcd.Air._UserAgent.get_$B()<=9.1){$1_0=-$1_0;}}$1_1=true;}if(!$1_1){var $1_3=$p1_0.detail;if(!isUndefined($1_3)){$1_0=Number.parse($1_3.toString());$1_0=-$1_0;$1_1=true;}}if($1_0){$p0.invoke($p1_0,$1_0);}});if(window.addEventListener)
window.addEventListener('DOMMouseScroll',$0,false);window.onmousewheel=document.onmousewheel=$0;;}
Rcd.Air._Jaxx=function(){}
Rcd.Air._Jaxx.$0=function($p0,$p1,$p2,$p3,$p4){Rcd.Air._Jaxx.$9($p0,$p1,$p2,$p3,$p4,1);}
Rcd.Air._Jaxx.$8=function($p0){var $0='\u042b';var $1=$p0.lastIndexOf($0);if($1<=0){throw new Error('Magic chars not found.');}for(var $4=$1+$0.length;$4<$p0.length;++$4){switch($p0.charAt($4)){case' ':case'\n':case'\r':break;default:throw new Error('Wrong character found after magic.');}}var $2=$p0.lastIndexOf('~',$1-1);if($2<0){throw new Error('Cannot find \'~\'.');}var $3=Number.parse($p0.substr($2+1,$1-$2-1));if($3!==$2){throw new Error('Tilde index mismatch: '+$3+'!='+$2+'.');}$p0=$p0.substr(0,$2);return $p0;}
Rcd.Air._Jaxx.$9=function($p0,$p1,$p2,$p3,$p4,$p5){var $0=new XMLHttpRequest();if(!$p1){$0.onreadystatechange=Delegate.create(null,function(){try{if($0.readyState===4){$0.onreadystatechange=Delegate.Null;Rcd.Air._Jaxx.$A($0,$p0,$p1,$p2,$p3,$p4,$p5);}}catch($1_0){Rcd.Air._ErrorReporter.$5($1_0);}});}$0.open('GET',$p0,!$p1);$0.send(null);if($p1){Rcd.Air._Jaxx.$A($0,$p0,$p1,$p2,$p3,$p4,$p5);}}
Rcd.Air._Jaxx.$A=function($p0,$p1,$p2,$p3,$p4,$p5,$p6){var $0=null;var $1=null;if($p0.readyState!==4){$0='XMLHttpRequest.ReadyState is '+$p0.readyState+'.';}else if($p0.status!==200){$0='XMLHttpRequest.Status in '+$p0.status+'.';}else{$1=$p0.responseText;if($p3){try{$1=Rcd.Air._Jaxx.$8($1);}catch($2){$0='Verification error: '+$2.message;}}}if(!$0){$p4.invoke($p0,$1);}else if($p6<5){if($p2){Rcd.Air._Jaxx.$9($p1,$p2,$p3,$p4,$p5,$p6+1);}else{window.setTimeout(Delegate.create(null,function(){try{Rcd.Air._Jaxx.$9($p1,$p2,$p3,$p4,$p5,$p6+1);}catch($1_0){Rcd.Air._ErrorReporter.$5($1_0);}}),3000);}}else if($p5){$p5.invoke($p0,$0);}else{throw new Error('AJAX problem (depth: '+$p6+').\n'+$0);}}
Rcd.Air._ErrorReporter=function(){}
Rcd.Air._ErrorReporter.$2=function($p0){try{return errorToErport($p0);}catch($3){}var $0;var $1;var $2;try{$0=window.navigator.userAgent;}catch($4){$0='[unavailable]';}try{$1=window.location.href;}catch($5){$1='[unavailable]';}try{$2=$p0.message;}catch($6){$2='[unavailable]';}try{return'Error Report Unavailable [1].\n'+'URL: '+$1+'\n'+'Message: '+$2+'\n'+'UA: '+$0;}catch($7){}try{return'Error Report Unavailable [2]. UA: '+window.navigator.userAgent+'.';}catch($8){}return'Error Report Unavailable';}
Rcd.Air._ErrorReporter.$3=function($p0){Rcd.Air._ErrorReporter.$4('CLIENT WARNING: '+$p0);}
Rcd.Air._ErrorReporter.$4=function($p0){var $0=new XMLHttpRequest();var $1='/?clientSideError';$0.open('POST',$1,true);$0.send($p0);}
Rcd.Air._ErrorReporter.$5=function($p0){if(!Rcd.Air._ErrorReporter.$1){return;}var $0=99;var $1=Rcd.Air._ErrorReporter.$2($p0);window.setTimeout(Delegate.create(null,function(){if(!Rcd.Air._ErrorReporter.$1){return;}if($1.indexOf('chrome://integratedgmail/content/script-compiler.js')>=0){Rcd.Air._ErrorReporter.$3('Integrated Gmail error.');return;}Rcd.Air._ErrorReporter.$4($1);alert(Rcd.Air._ErrorReporter.$0);}),$0);}
Rcd.Air._EasyHash=function(){}
Rcd.Air._EasyHash.$0=function($p0){if(Rcd.Air._EasyHash.get_$2()){window.attachEvent('onhashchange',Delegate.create(null,function(){var $1_0=window.location.hash;$p0.invoke(Rcd.Air._EasyHash.$1,$1_0);Rcd.Air._EasyHash.$1=$1_0;}));}else{window.setInterval(Delegate.create(null,function(){var $1_0=window.location.hash;if($1_0!==Rcd.Air._EasyHash.$1){$p0.invoke(Rcd.Air._EasyHash.$1,$1_0);Rcd.Air._EasyHash.$1=$1_0;}}),333);}}
Rcd.Air._EasyHash.get_$2=function(){return eval('(\'onhashchange\' in window)');}
Rcd.Air.Position=function(){}
Rcd.Air.Position.prototype={top:0,left:0}
Rcd.Air.Jake=function(){}
Rcd.Air.Jake.wrap=function(oElement){var $0=new Rcd.Air.Jake();$0.JqueryObject=jQuery(oElement);return $0;}
Rcd.Air.Jake.wrapMany=function(elements){var $0=new Rcd.Air.Jake();$0.JqueryObject=jQuery(elements);return $0;}
Rcd.Air.Jake.select=function(selector){var $0=new Rcd.Air.Jake();$0.JqueryObject=jQuery(selector);return $0;}
Rcd.Air.Jake.selectExpected=function(sSelector,expectation){var $0=new Rcd.Air.Jake();$0.JqueryObject=jQuery(sSelector);switch(expectation){case 0:break;case 1:if($0.get_count()!==1){throw new Error('Unexpected matches count for \''+sSelector+'\': '+$0.get_count()+'.');}break;case 2:if($0.get_count()<=0){throw new Error('Unexpected matches count for \''+sSelector+'\': '+$0.get_count()+'.');}break;default:throw new Error('Unexpected value: '+expectation+'.');}return $0;}
Rcd.Air.Jake.prototype={JqueryObject:null,get_length:function(){return this.JqueryObject.length;},slideToggle:function(sSpeed){this.JqueryObject.slideToggle(sSpeed);},toggleSlow:function(){this.JqueryObject.toggle('slow');},addClass:function(sClass){this.JqueryObject.addClass(sClass);},removeClass:function(sClass){this.JqueryObject.removeClass(sClass);},get_height:function(){return this.JqueryObject.height();},get_count:function(){return this.JqueryObject.length;},get_dom:function(){if(this.get_count()!==1){throw new Error('The count of wrapped DOM elements is '+this.get_count()+'.');}return this.get_item(0);},fadeTo:function(sSpeed,fOpacity){this.JqueryObject.fadeTo(sSpeed,fOpacity);},getCss:function(propertyName){return this.JqueryObject.css(propertyName);},setCss:function(propertyName,value){this.JqueryObject.css(propertyName,value);},get_offset:function(){var $0=this.JqueryObject.offset();return[$0.left,$0.top];},get_position:function(){return this.JqueryObject.position();},get_html:function(){return this.JqueryObject.html();},set_html:function(value){this.JqueryObject.html(value);return value;},get_cssZIndex:function(){return Number.parse(this.getCss('z-index'));},set_cssZIndex:function(value){this.setCss('z-index',value);return value;},get_cssDisplay:function(){return this.getCss('display');},set_cssDisplay:function(value){this.setCss('display',value);return value;},get_cssVisible:function(){return this.getCss('visibility')==='visible';},set_cssVisible:function(value){this.setCss('visibility',(value)?'visible':'hidden');return value;},get_item:function(idx){return this.JqueryObject[idx.toString()];}}
Rcd.Air._DomHelper=function(){}
Rcd.Air._DomHelper.$0=function($p0){return window.document.getElementById($p0);}
Rcd.Air._DomHelper.$1=function($p0){var $0=Rcd.Air._DomHelper.$0($p0);if(!$0){throw new Error('Element \''+$p0+'\' not found.');}return $0;}
Rcd.Air._DomHelper.$2=function($p0){return $p0.offsetTop+$p0.offsetHeight;}
Rcd.Air._DomHelper.$3=function($p0){if(!$p0.endsWith('px')){throw new Error('The style \''+$p0+'\' does not end with \'px\'.');}$p0=$p0.remove($p0.length-2);return Number.parse($p0);}
Rcd.Air._DomHelper.get_$4=function(){var $0=Rcd.Air._DomHelper.get_$6();if(!$0[0]*$0[1]){$0=Rcd.Air._DomHelper.get_$5();}return $0;}
Rcd.Air._DomHelper.get_$5=function(){return eval('var windowSizeHack = document.getElementById(\'windowSizeHack\');\r\n\t\t\t        if (windowSizeHack==null)\r\n\t\t\t        {\r\n\t\t\t\t        var div = document.createElement(\'div\');\r\n\t\t\t\t        div.setAttribute(\'style\', \'position:absolute; width:100%; height:100%; background-color:transparent; z-index:-100; padding:0; margin:0; visibility:hidden;\');\r\n\t\t\t\t        div.setAttribute(\'id\', \'windowSizeHack\');\r\n\t\t\t\t        document.body.appendChild(div);\r\n\t\t\t        }\t\r\n\t\t\t        windowSizeHack = document.getElementById(\'windowSizeHack\');            \r\n\t\t\t        [windowSizeHack.clientWidth,windowSizeHack.clientHeight]');}
Rcd.Air._DomHelper.get_$6=function(){return eval('{\r\n                var myWidth = 0, myHeight = 0;\r\n                if(typeof(window.innerWidth)==\'number\') \r\n                {\r\n                  //Non-IE\r\n                  myWidth = window.innerWidth;\r\n                  myHeight = window.innerHeight;\r\n                } \r\n                else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) \r\n                {\r\n                  //IE 6+ in \'standards compliant mode\'\r\n                  myWidth = document.documentElement.clientWidth;\r\n                  myHeight = document.documentElement.clientHeight;\r\n                } \r\n                else if (document.body && (document.body.clientWidth || document.body.clientHeight)) \r\n                {\r\n                  //IE 4 compatible\r\n                  myWidth = document.body.clientWidth;\r\n                  myHeight = document.body.clientHeight;\r\n                }\r\n                [myWidth,myHeight];\r\n              }');}
Rcd.Air._DomHelper.get_$7=function(){var $0=window.top;var $1=0,$2=0;var $3=$0.innerWidth;if(typeof($3)==='number'){$1=$0.innerWidth;$2=$0.innerHeight;}else if((document.documentElement)&&((document.documentElement.clientWidth)||document.documentElement.clientHeight)){$1=document.documentElement.clientWidth;$2=document.documentElement.clientHeight;}else if((document.body)&&((document.body.clientWidth)||(document.body.clientHeight))){$1=document.body.clientWidth;$2=document.body.clientHeight;}return[$1,$2];}
Rcd.Air._DomHelper.$8=function($p0){var $0=$p0.offsetHeight;if(!$0){$0=$p0.clientHeight;}if(!$0){$0=$p0.scrollHeight;}return $0;}
Rcd.Air._DomHelper.$9=function($p0){var $0=$p0.innerText;if(($0)&&($0.length>0)){return $0;}return $p0.innerHTML.replace(Rcd.Air._DomHelper.$A,'');}
Rcd.Air._DomHelper.$B=function($p0,$p1){if(($p1<0)||($p1>1)){throw new Error('fOpacity out of range: '+$p1+'.');}$p0.style.opacity=$p1.toString();$p0.style.filter='alpha(opacity='+Math.round($p1*100).toString()+')';$p0.style.zoom='1';}
Rcd.Air._DomHelper.$C=function($p0){var $0=$p0.offsetWidth;if(!$0){$0=$p0.clientWidth;}if(!$0){$0=$p0.scrollWidth;}return $0;}
Rcd.Air._DomHelper.$D=function($p0,$p1){var $0=0;for(var $1=$p0;$1!==$p1;$1=$1.parentNode){$0+=$1.offsetTop;}return $0;}
Rcd.Air._DomHelper.$E=function($p0){var $0=null;var $1=$p0.getElementsByTagName('*');for(var $2=$1.length-1;$2>=0;--$2){var $3=$1[$2];if($3.nodeName.charAt(0)==='/'){if(!$0){$0=[];}$0.add($3);}}if($0){for(var $4=$0.length-1;$4>=0;--$4){try{Rcd.Air._DomHelper.$10($0[$4]);}catch($5){}}}}
Rcd.Air._DomHelper.$F=function($p0,$p1){for(var $0=$p0;$0;$0=$0.parentNode){if(!String.compare($0.nodeName,$p1,true)){return $0;}}return null;}
Rcd.Air._DomHelper.$10=function($p0){$p0.parentNode.removeChild($p0);}
Rcd.Air._DomHelper.$11=function($p0){$p0.innerHTML='';}
Rcd.Air._DomHelper.$12=function($p0,$p1,$p2){var $0=$p0.ownerDocument.createElement($p1);$p0.appendChild($0);if($p2){$0.className=$p2;}return $0;}
Rcd.Air._DomHelper.$13=function($p0,$p1){var $0=new StringBuilder();Rcd.Air._DomHelper.$14($p0,$0,$p1);var $1=$0.toString();return $1;}
Rcd.Air._DomHelper.$14=function($p0,$p1,$p2){switch($p0.nodeType){case 4:$p1.append($p0.text);break;case 8:$p1.append('<!--');$p1.append($p0.text.htmlEncode());$p1.append('-->');break;case 1:if($p2){$p1.append('<');$p1.append($p0.nodeName);for(var $2=$p0.attributes.length-1;$2>=0;--$2){var $3=$p0.attributes.item($2);$p1.append(' ');$p1.append($3.name);$p1.append('=\"');$p1.append($3.value.htmlEncode());$p1.append('\"');}$p1.append('>');}var $0=$p0.childNodes.length;for(var $4=0;$4<$0;++$4){Rcd.Air._DomHelper.$14($p0.childNodes[$4],$p1,true);}if($p2){$p1.append('</');$p1.append($p0.nodeName);$p1.append('>');}break;case 3:var $1=$p0.text;if(String.compare($p0.parentNode.nodeName,'script',true)){$1=$1.htmlEncode();}$p1.append($1);break;default:throw new Error('Unexpected node type: '+$p0.nodeType+'.');}}
Rcd.Air._UrlHelper=function(){}
Rcd.Air._UrlHelper.$0=function($p0,$p1){$p0='?'+$p0;var $0=Rcd.Air._UrlHelper.$4($p1);var $1=$0.exec($p0);if($1&&$1.length>0){return $1[0].remove(0,$p1.length+2);}else{return null;}}
Rcd.Air._UrlHelper.$1=function($p0,$p1,$p2){$p0=Rcd.Air._UrlHelper.$3($p0,$p1);if($p2){$p0=Rcd.Air._UrlHelper.$2($p0,$p1,$p2);}return $p0;}
Rcd.Air._UrlHelper.$2=function($p0,$p1,$p2){var $0=$p0.indexOf('#');if($0<0){$0=$p0.length;}var $1=(($p0.indexOf('?')>=0)?'&':'?')+$p1+'='+$p2;if($0<$p0.length){return $p0.insert($0,$1);}else{return $p0+$1;}}
Rcd.Air._UrlHelper.$3=function($p0,$p1){var $0=Rcd.Air._UrlHelper.$4($p1);var $1=$0.exec($p0);if($1&&$1.length>0){var $2=$1[0];if($2.startsWith('&')){var $4=$p0.indexOf($2);if($4<0){throw new Error('Param pair not found (point 1).');}$p0=$p0.remove($4,$2.length);return $p0;}$2=$2.remove(0,1);var $3=$p0.indexOf($2);if($3<0){throw new Error('Param pair not found (point 2).');}$p0=$p0.remove($3,$2.length);if($3<$p0.length){if($p0.charAt($3)==='&'){$p0=$p0.remove($3,1);}}}return $p0;}
Rcd.Air._UrlHelper.$4=function($p0){return new RegExp('\\W'+$p0+'=[^&#]*','gim');}
Rcd.Air._UserAgent=function(){}
Rcd.Air._UserAgent.get_$0=function(){if(!Rcd.Air._UserAgent.$1){if(window.navigator.userAgent.startsWith('Mozilla/')&&window.navigator.userAgent.indexOf('MSIE')>=0){var $0=new RegExp('MSIE [\\.1234567890]+').exec(window.navigator.userAgent);if($0&&$0.length===1){Rcd.Air._UserAgent.$1=$0[0].remove(0,5);}}if(!Rcd.Air._UserAgent.$1){Rcd.Air._UserAgent.$1='none';}}if(Rcd.Air._UserAgent.$1==='none'){return null;}else{return Rcd.Air._UserAgent.$1;}}
Rcd.Air._UserAgent.get_$2=function(){return(Rcd.Air._UserAgent.get_$0())?true:false;}
Rcd.Air._UserAgent.get_$3=function(){var $0=Rcd.Air._UserAgent.get_UA().toUpperCase();var $1=['Linux','FreeBSD','OpenBSD','SunOS','Unix'];for(var $2=0;$2<$1.length;++$2){if($0.indexOf($1[$2].toUpperCase())>=0){return true;}}return false;}
Rcd.Air._UserAgent.get_UA=function(){if(!window.navigator.userAgent){return'';}else{return window.navigator.userAgent;}}
Rcd.Air._UserAgent.get_$4=function(){return Rcd.Air._UserAgent.get_UA().toUpperCase().indexOf('WINDOWS')>=0;}
Rcd.Air._UserAgent.get_$5=function(){if(Rcd.Air._UserAgent.$6<0){Rcd.Air._UserAgent.$6=(Rcd.Air._UserAgent.get_UA().indexOf('Chrome/')>=0)?1:0;}return(Rcd.Air._UserAgent.$6===1);}
Rcd.Air._UserAgent.get_$7=function(){if(Rcd.Air._UserAgent.$8<0){Rcd.Air._UserAgent.$8=(Rcd.Air._UserAgent.get_UA().startsWith('Opera/'))?1:0;}return(Rcd.Air._UserAgent.$8===1);}
Rcd.Air._UserAgent.get_$9=function(){if(!Rcd.Air._UserAgent.get_$7()){throw new Error('The current browser is not Opera. Not implemented for other browsers.');}if(Rcd.Air._UserAgent.$A){return Rcd.Air._UserAgent.$A;}var $0=window.navigator.userAgent.split(' ')[0].split('/')[1].split('.');Rcd.Air._UserAgent.$A=[Number.parse($0[0]),Number.parse($0[1])];return Rcd.Air._UserAgent.$A;}
Rcd.Air._UserAgent.get_$B=function(){if(Rcd.Air._UserAgent.$C<0){Rcd.Air._UserAgent.$C=Rcd.Air._UserAgent.get_$9()[0]+Number.parse('0.'+Rcd.Air._UserAgent.get_$9()[1]);}return Rcd.Air._UserAgent.$C;}
Rcd.Air._Utils=function(){}
Rcd.Air._Utils.$0=function($p0){if(!$p0.endsWith('px')){throw new Error('The style \''+$p0+'\' does not end with \'px\'.');}$p0=$p0.remove($p0.length-2);return Number.parse($p0);}
Rcd.Air._Utils.$1=function($p0){return typeof($p0)==='undefined';}
Rcd.Air._Utils.$2=function($p0,$p1){if(!$p0){throw new Error($p1);}}
Rcd.Air._Utils.$3=function($p0,$p1){for(var $0=0;$0<$p1.length;++$0){var $1=$p1[$0];var $2=$p0[$1];if(!Rcd.Air._Utils.$1($2)){return $2;}}return null;}
Rcd.Air._Utils.$4=function($p0,$p1){if($p0<=0){throw new Error('The value of \''+$p1+'\' is not positive ('+$p0+').');}return $p0;}
Type.createNamespace('Rcd.Air.Origami');Rcd.Air.Origami._BlocksPerPageAverage=function(){}
Rcd.Air.Origami._BlocksPerPageAverage.get_$0=function(){return Math.ceil(Rcd.Air.Origami._BlocksPerPageAverage.$1);}
Rcd.Air.Origami._BlocksPerPageAverage.$2=function($p0){if($p0>Rcd.Air.Origami._BlocksPerPageAverage.$1){Rcd.Air.Origami._BlocksPerPageAverage.$1=$p0;}else{var $0=0.75;Rcd.Air.Origami._BlocksPerPageAverage.$1=$0*Rcd.Air.Origami._BlocksPerPageAverage.$1+(1-$0)*$p0;if(Rcd.Air.Origami._BlocksPerPageAverage.$1<1){Rcd.Air.Origami._BlocksPerPageAverage.$1=1;}}}
Rcd.Air.Origami._BookPositions=function(sCookieString){this.$0=[];if(sCookieString){this.$0.addRange(sCookieString.split('|'));}}
Rcd.Air.Origami._BookPositions.$1=function($p0){return $p0.split(':')[0];}
Rcd.Air.Origami._BookPositions.prototype={$0:null,$3:function(){var $0=new StringBuilder();for(var $1=0;$1<this.$0.length;++$1){if($1){$0.append('|');}$0.append(this.$0[$1]);}return $0.toString();},$4:function($p0){for(var $0=this.$0.length-1;$0>=0;--$0){if((this.$0[$0]).startsWith($p0)){return $0;}}return-1;},get_item:function($p0){var $0=this.$4($p0);if($0<0){return null;}var $1=this.$0[$0];return $1.remove(0,$1.indexOf(':')+1);},set_item:function($p0,$p1){var $0=$p1;if(($0.split(':').length!==2)||($0.indexOf('|')>=0)){throw new Error('sBookpos=\''+$0+'\' is incorrect value.');}var $1=$p0+':'+$0;var $2=this.$4($p0);if($2>=0){this.$0.removeAt($2);}this.$0.insert(0,$1);while(this.$0.length>10){this.$0.removeAt(this.$0.length-1);}return $p1;}}
Rcd.Air.Origami._Callbackin=function(iIntervalMs,oTheCallback){this.id=-1;this.$5={};this.$1=oTheCallback;this.$2=iIntervalMs;this.$0=Delegate.create(this,this.$4);}
Rcd.Air.Origami._Callbackin.prototype={$0:null,$1:null,$2:0,$3:function(){if(this.id>=0){throw new Error('The timeout is scheduled.');}this.id=window.setTimeout(this.$0,this.$2);},$4:function(){if(this.id>=0){window.clearTimeout(this.id);this.$1.invoke(this.$5);this.id=-1;Object.clearKeys(this.$5);}},get_$6:function(){return this.id>=0;},$7:function(){if(this.id>=0){window.clearTimeout(this.id);this.id=-1;Object.clearKeys(this.$5);}}}
Rcd.Air.Origami._Cook=function(){}
Rcd.Air.Origami._Cook.$0=function($p0,$p1,$p2){var $0;if($p2>0){var $1=new Date();$1.setTime($1.getTime()+$p2*24*60*60*1000);$0='; expires='+$1.toUTCString();}else{$0='';}document.cookie=$p0+'='+$p1+$0+'; path=/';}
Rcd.Air.Origami._Cook.$1=function($p0){var $0=$p0+'=';var $1=document.cookie.split(';');for(var $2=0;$2<$1.length;$2++){var $3=$1[$2];$3=$3.trimStart();if(!$3.indexOf($0)){return $3.substring($0.length,$3.length);}}return null;}
Rcd.Air.Origami._Cook.$2=function(){var $0=document.cookie.split(';');var $1=[];for(var $2=$0.length-1;$2>=0;--$2){$1.add($0[$2].trimStart().split('=')[0]);}return $1;}
Rcd.Air.Origami._Cook.$3=function($p0){Rcd.Air.Origami._Cook.$0($p0,'',-1);}
Rcd.Air.Origami._Cook.$4=function(){var $0=new StringBuilder();var $1=Rcd.Air.Origami._Cook.$2();for(var $2=0;$2<$1.length;++$2){var $3=$1[$2];$0.appendLine($3+'=\''+Rcd.Air.Origami._Cook.$1($3)+'\'');}alert($0.toString());}
Rcd.Air.Origami._ExCo=function(){}
Rcd.Air.Origami._FontDetector=function(){}
Rcd.Air.Origami._FontDetector.$0=function($p0){if(!Rcd.Air.Origami._FontDetector.d){Rcd.Air.Origami._FontDetector.d=eval('new Detector()');}return Rcd.Air.Origami._FontDetector.d.test($p0);}
Rcd.Air.Origami._FontDetector.$1=function($p0){var $0=[];for(var $1=0;$1<$p0.length;++$1){if(Rcd.Air.Origami._FontDetector.$0($p0[$1])){$0.add($p0[$1]);}}return $0;}
Rcd.Air.Origami._HtmlDecoder=function(){}
Rcd.Air.Origami._HtmlDecoder.$0=function($p0){return $p0.replace(Rcd.Air.Origami._HtmlDecoder.$1,Delegate.create(null,Rcd.Air.Origami._HtmlDecoder.$2));}
Rcd.Air.Origami._HtmlDecoder.$2=function($p0){switch($p0){case'@T':return'<';case'@t':return'>';case'@W':return'<s>';case'@w':return'</s>';case'@@':return'@';case'&lt;':return'<';case'&gt;':return'>';default:throw new Error('Unexpected value: \''+$p0+'\'.');}}
Rcd.Air.Origami._Keystroke=function(){}
Rcd.Air.Origami._Keystroke.prototype={$0:'',$1:function($p0){while(this.$0.length>=20){this.$0=this.$0.remove(0,1);}this.$0+=String.fromCharCode($p0).toLowerCase();},$2:function($p0){this.$3=this.$0.endsWith($p0);if(this.$3){this.$0='';}return this.$3;},$3:false}
Rcd.Air.Origami.Log=function(){}
Rcd.Air.Origami.Log.writeLine=function(sMessage){if((!Rcd.Air.Origami.Log.oLogWindow)||Rcd.Air.Origami.Log.oLogWindow.closed){Rcd.Air.Origami.Log.oLogWindow=window.open('',null,'width=400,height=200,'+'scrollbars=yes,resizable=yes,status=no,'+'location=no,menubar=no,toolbar=no');if(!Rcd.Air.Origami.Log.oLogWindow){return;}Rcd.Air.Origami.Log.oLogWindow.document.write('<html>\r\n    <head>\r\n      <title>Debug Log</title>\r\n      <style>\r\n        div {border-bottom:1px #eee solid;}\r\n        pre div {font: 8pt consolas, courier new;}\r\n      </style>\r\n    </head>\r\n    <body>\r\n      <pre id=\"out\"></pre>\r\n    </body>\r\n  </html>');Rcd.Air.Origami.Log.oLogWindow.document.close();Rcd.Air.Origami.Log.oPRE=Rcd.Air.Origami.Log.oLogWindow.document.getElementById('out');}var $0=Rcd.Air.Origami.Log.oLogWindow.document.createElement('div');Rcd.Air.Origami.Log.oPRE.appendChild($0);$0.innerHTML=sMessage;}
Rcd.Air.Origami._Stopwatch=function(){this.$0=Date.get_now().getTime();}
Rcd.Air.Origami._Stopwatch.prototype={$0:0,$1:function($p0){var $0=Date.get_now().getTime()-this.$0;Rcd.Air.Origami.Log.writeLine($0+' ms. : '+$p0);}}
Rcd.Air.Origami._Block=function(iIndex,sValue){if(!sValue.startsWith('<')){throw new Error('Incorrect first char of the block: ['+sValue+'].');}if(!sValue.endsWith('>')){throw new Error('Incorrect last char of the block: ['+sValue+'].');}this.$0=iIndex;this.$1=sValue;}
Rcd.Air.Origami._Block.$2=function($p0){var $0=new StringBuilder();for(var $1=0;$1<$p0.length;++$1){$0.append($p0[$1].$1);}return $0.toString();}
Rcd.Air.Origami._Block.prototype={$0:0,$1:null}
Rcd.Air.Origami._BlockKeeper=function(sBookID){this.$4=[];this.$6=-1;this.$3=sBookID;}
Rcd.Air.Origami._BlockKeeper.$0=function($p0){var $0=Rcd.Air.Origami._BlockKeeper.$2($p0);var $1=Number.parse($0.remove(0,1));if('b'+$1!==$0){throw new Error('Cannot parse block xi=\''+$p0.id+'\' (node '+$p0.nodeName+' class '+$p0.getAttribute('class')+')');}return $1;}
Rcd.Air.Origami._BlockKeeper.$1=function($p0){return'b'+$p0;}
Rcd.Air.Origami._BlockKeeper.$2=function($p0){var $0=$p0.getAttribute('xi');if(!$0){throw new Error('The element '+$p0.nodeName+' does not contain \'xi\' attribute.');}return $0;}
Rcd.Air.Origami._BlockKeeper.$A=function($p0){var $0=new RegExp(String.fromCharCode(173)+'|&#173;|&#xad;','gi');return $p0.replace($0,'');}
Rcd.Air.Origami._BlockKeeper.prototype={$3:null,get_$5:function(){if(this.$6<0){throw new Error('The count of blocks is unknown.');}return this.$6;},set_$5:function($p0){if($p0<0){throw new Error('The value cannot be negative.');}this.$6=$p0;return $p0;},get_$7:function(){return this.$6>=0;},get_$8:function(){return 0;},get_$9:function(){return this.get_$5()-1;},$B:function($p0){var $0=$p0;var $1=null;try{$1=eval($0);}catch($12){throw new Error('Cannot evalute JSON data:\n'+$0);}var $2=$1.s;var $3=$1.d;var $4=new StringBuilder();var $5=$2.length;for(var $13=0;$13<$5;++$13){var $14=$2[$13];var $15;if(Type.canCast($14,Number)){$15=$3[$14];}else{$15=$14;}if($15.startsWith('~')){if($15.length>=3&&$15.charAt(1)==='~'){switch($15.charAt(2)){case'1':$15=$15.substr(3,$15.length-3);$15='~'+$15;break;case'2':$15=$15.substr(3,$15.length-3);$15='<s>~'+$15+'</s>';break;default:throw new Error('Cannot decode string ['+$15+'].');}}else{$15='<s>'+$15.substr(1,$15.length-1)+'</s>';}}$4.append($15);}$p0=$4.toString();if(Rcd.Air._UserAgent.get_$7()){$p0=Rcd.Air.Origami._BlockKeeper.$A($p0);}var $6=$p0.split('\n');var $7=$6[0];var $8=$7.split(' ');if($8.length!==4){throw new Error('Wrong first line: \''+$7+'\'.');}var $9=$8[0];var $A=$8[1];var $B=$8[2];var $C=$8[3];this.$F=Number.parse($9);var $D=Number.parse($A);var $E;switch($B){case'F':$E=true;break;case'R':$E=false;break;default:throw new Error('Cannot recognize direction parameter: \''+$7+'\'.');}var $F=Number.parse($C);if(!this.get_$7()){this.set_$5($F);if(!this.get_$7()){throw new Error('TotalCountAvailable=false right after assignment.');}}else if($F!==this.get_$5()){throw new Error('Total count changed: '+$F+'!='+this.get_$5()+'.');}var $10=$D;var $11=$6.length;for(var $16=1;$16<$11;++$16){var $17=$6[$16].trimEnd();if(!$17.startsWith('<')||!$17.endsWith('>')){throw new Error('Got incorrect AJAX line: ['+$17+'].');}var $18=window.location.href;var $19=$18.indexOf('?');if($19>=0){$18=$18.remove(0,$19);}var $1A=$18.indexOf('#');if($1A>=0){$18=$18.remove($1A);}$18+='&'+$10;var $1B=$17.indexOf('xi=');if($1B<=0){throw new Error('XI not found.');}var $1C='href=\"'+$18+'\" onmouseover=\"readerPage.paragraphBlock_onMouseOver(this);\" ';$17=$17.insert($1B,$1C);this.set_item($10,new Rcd.Air.Origami._Block($10,$17));if($E){++$10;}else{--$10;}}},$C:function($p0,$p1,$p2){var $0=this.$11($p0,$p1);var $1=this.$12($0.$0,$0.get_$2());if($1){$p2.invoke(this,$p0,$p1,$1);return;}var $2=Rcd.Air.Origami._BlocksPerPageAverage.get_$0()*10;var $3=this.$11(Math.max(0,$0.$0-$2),$0.get_$2()+$2*2);if($3.get_$2()<=0){throw new Error('Point A: oLargerRange.Count='+$3.get_$2());}while(this.get_item($3.$0)){++$3.$0;}while(this.get_item($3.$1)){--$3.$1;}if($3.get_$2()<=0){throw new Error('Point B: oLargerRange.Count='+$3.get_$2());}var $4=Date.get_now().getTime();Rcd.Air.Origami._JaxxSpecific.$8(this.$3,$3.$0,$3.get_$2(),Delegate.create(this,function($p1_0,$p1_1){try{var $1_0=$p1_1;this.$E=Date.get_now().getTime()-$4;this.$10=$1_0.length;this.$B($1_0);$0=this.$11($p0,$p1);$1=this.$12($0.$0,$0.get_$2());if(!$1){throw new Error('The document fragment was not cached even after AJAX request ('+$p0+', '+$p1+', '+this.get_$5()+').');}$p2.invoke(this,$p0,$p1,$1);}catch($1_1){Rcd.Air._ErrorReporter.$5($1_1);}}));},$D:function($p0,$p1){var $0=this.$11($p0,$p1);var $1=this.$12($0.$0,$0.get_$2());if($1){return $1;}var $2=Rcd.Air.Origami._BlocksPerPageAverage.get_$0()*10;var $3=this.$11(Math.max(0,$0.$0-$2),$0.get_$2()+$2*2);if($3.get_$2()<=0){throw new Error('Point A: oLargerRange.Count='+$3.get_$2());}while(this.get_item($3.$0)){++$3.$0;}while(this.get_item($3.$1)){--$3.$1;}if($3.get_$2()<=0){throw new Error('Point B: oLargerRange.Count='+$3.get_$2());}var $4=Date.get_now().getTime();var $5=Rcd.Air.Origami._JaxxSpecific.$9(this.$3,$3.$0,$3.get_$2());this.$E=Date.get_now().getTime()-$4;this.$10=$5.length;this.$B($5);$0=this.$11($p0,$p1);$1=this.$12($0.$0,$0.get_$2());if(!$1){throw new Error('The document fragment was not cached even after AJAX request ('+$p0+', '+$p1+', '+this.get_$5()+').');}return $1;},$E:0,$F:0,$10:0,$11:function($p0,$p1){if($p0<0){throw new Error('Wrong iFirst='+$p0+'. Must not be negative.');}if(this.get_$7()){if($p0>this.get_$9()){throw new Error('Wrong iFirst='+$p0+'. LastBlockIndex='+this.get_$9()+'.');}}var $0;if($p1>=0){$0=$p0+$p1-1;}else{$0=$p0;$p0=$p0-(-$p1)+1;}if($p0>$0){throw new Error('Oops. iFirst>iLast');}if($0<0){throw new Error('Oops. iLast='+$0+'.');}if($p0<0){$p0=0;}if(this.get_$7()){if($0>this.get_$9()){$0=this.get_$9();}}return new Rcd.Air.Origami._Range($p0,$0);},$12:function($p0,$p1){if(!this.get_$7()){return null;}if($p1<0){throw new Error('The count must not be negative.');}var $0=$p0+$p1-1;if($0>=this.get_$5()){throw new Error('iLast='+$0+', this.TotalCount='+this.get_$5());}if(!this.get_item($p0)){return null;}if(!this.get_item($0)){return null;}var $1=new Array($p1);for(var $2=$p0;$2<=$0;++$2){var $3=this.get_item($2);if(!$3){return null;}$1[$2-$p0]=$3;}if($1.length!==$p1){throw new Error('Unexpected aResult.Length.');}return $1;},get_item:function($p0){if($p0>=this.$4.length){return null;}else{return this.$4[$p0];}},set_item:function($p0,$p1){if($p0>this.get_$5()){throw new Error('Wrong index: '+$p0+' (total: '+this.get_$5()+')');}if(!$p1){throw new Error('The value must not be null.');}this.$4[$p0]=$p1;return $p1;}}
Rcd.Air.Origami._Range=function(first,last){this.$0=first;this.$1=last;}
Rcd.Air.Origami._Range.prototype={$0:0,$1:0,get_$2:function(){return this.$1-this.$0+1;}}
Rcd.Air.Origami._Constants=function(){}
Rcd.Air.Origami._Constants.$0=function($p0){var $0=$($p0);if(!$0){return null;}return $0.innerHTML;}
Rcd.Air.Origami._Constants.get_$1=function(){return Rcd.Air.Origami._Constants.$0('scPgdnHint');}
Rcd.Air.Origami._Constants.get_$2=function(){return Rcd.Air.Origami._Constants.$0('scBlockLink');}
Rcd.Air.Origami._Constants.get_$3=function(){var $0=Rcd.Air.Origami._Constants.$0('scUnexpectedError');$0=$0.replace(new RegExp(' +\\n+ +','g'),'\n');$0=$0.replace(new RegExp('^\\s+','g'),'');$0=$0.replace(new RegExp('\\s+$','g'),'');$0=$0.replace(new RegExp(' +','g'),' ');return $0;}
Rcd.Air.Origami._Cutted=function(oParent){this.$5=-1;this.$A=-2;this.$0=Rcd.Air._DomHelper.$12(oParent,'div',null);this.$0.style.overflowY='hidden';this.$0.style.position='relative';this.$1=Rcd.Air._DomHelper.$12(this.$0,'div',null);this.$1.style.position='relative';this.$1.style.overflowY='hidden';this.$10();}
Rcd.Air.Origami._Cutted.prototype={$0:null,$1:null,get_$2:function(){return-Rcd.Air._Utils.$0(this.$1.style.top);},set_$2:function($p0){this.$1.style.top='-'+$p0+'px';return $p0;},$3:0,get_$4:function(){return this.$3;},set_$4:function($p0){if($p0<0){throw new Error('bcp: '+$p0+'.');}var $0=this.get_$9()-this.get_$2()-$p0;if($0<=0){throw new Error('newHeight='+$0+', ch='+this.get_$9()+', tcp='+this.get_$2()+', v='+$p0);}var $1=$0+'px';try{this.$0.style.height=$1;}catch($2){throw new Error('Failed to set bc \''+$1+'\'.');}this.$3=$p0;return $p0;},get_$6:function(){return this.$5;},set_$6:function($p0){this.$5=$p0;return $p0;},$7:false,$8:function(){if(!this.$7){throw new Error('ManualResize must be set to true.');}this.$A=-1;},get_$9:function(){if(this.$7){if(this.$A<0){if(this.$A===-2){throw new Error('OnCanvasContentChange was not called.');}this.$A=Rcd.Air._DomHelper.$8(this.$1);if(this.$A<0){throw new Error('iCanvasHeight<0');}}return this.$A;}else{return Rcd.Air._DomHelper.$8(this.$1);}},get_$B:function(){return Rcd.Air._DomHelper.$8(this.$0);},get_$C:function(){return Rcd.Air._DomHelper.$C(this.$0);},set_$C:function($p0){this.$0.style.width=($p0+'px');return $p0;},get_$D:function(){return this.$0.offsetLeft;},set_$D:function($p0){this.$0.style.left=($p0+'px');return $p0;},get_$E:function(){return this.$0.clientLeft;},set_$E:function($p0){this.$0.style.top=($p0+'px');return $p0;},get_$F:function(){return this.$1;},$10:function(){Rcd.Air._DomHelper.$11(this.get_$F());this.set_$2(0);this.$1.style.height='auto';if(this.$5<0){this.$0.style.height='auto';}else{this.$0.style.height=this.$5+'px';}},get_$11:function(){return Rcd.Air._DomHelper.$8(this.$1);}}
Rcd.Air.Origami._Elements=function(){}
Rcd.Air.Origami._Elements.get_$0=function(){return(Rcd.Air.Origami._Elements.$5)?Rcd.Air.Origami._Elements.$5:Rcd.Air.Origami._Elements.$5=Rcd.Air.Jake.select('#shade');}
Rcd.Air.Origami._Elements.get_$1=function(){return(Rcd.Air.Origami._Elements.$6)?Rcd.Air.Origami._Elements.$6:Rcd.Air.Origami._Elements.$6=Rcd.Air.Jake.select('#shade .MM');}
Rcd.Air.Origami._Elements.get_$2=function(){return(Rcd.Air.Origami._Elements.$7)?Rcd.Air.Origami._Elements.$7:Rcd.Air.Origami._Elements.$7=Rcd.Air.Jake.select('#pageBgL');}
Rcd.Air.Origami._Elements.get_$3=function(){return(Rcd.Air.Origami._Elements.$8)?Rcd.Air.Origami._Elements.$8:Rcd.Air.Origami._Elements.$8=Rcd.Air.Jake.select('#pageBgR');}
Rcd.Air.Origami._Elements.get_$4=function(){return(Rcd.Air.Origami._Elements.$9)?Rcd.Air.Origami._Elements.$9:Rcd.Air.Origami._Elements.$9=Rcd.Air.Jake.select('#loadingIndicator');}
Rcd.Air.Origami._Elements.get_$A=function(){return Rcd.Air.Origami._Elements.get_$4().get_cssDisplay()==='block';}
Rcd.Air.Origami._Elements.set_$A=function($p0){Rcd.Air.Origami._Elements.get_$4().set_cssDisplay(($p0)?'block':'none');return $p0;}
Rcd.Air.Origami._Elements.get_$B=function(){return Rcd.Air.Origami._Elements.get_$0().get_cssVisible();}
Rcd.Air.Origami._Elements.set_$B=function($p0){Rcd.Air.Origami._Elements.get_$0().set_cssVisible(Rcd.Air.Origami._Elements.get_$2().set_cssVisible(Rcd.Air.Origami._Elements.get_$3().set_cssVisible($p0)));return $p0;}
Rcd.Air.Origami._Elements.get_$C=function(){if(!Rcd.Air.Origami._Elements.$D){Rcd.Air.Origami._Elements.$D=Rcd.Air.Jake.select('#bookProgress');}return Rcd.Air.Origami._Elements.$D;}
Rcd.Air.Origami._Elements.get_$E=function(){return(Rcd.Air.Origami._Elements.$F)?Rcd.Air.Origami._Elements.$F:Rcd.Air.Origami._Elements.$F=Rcd.Air.Jake.selectExpected('#topBar',1);}
Rcd.Air.Origami._Elements.get_$10=function(){return Rcd.Air.Origami._Elements.$11;}
Rcd.Air.Origami._Elements.set_$10=function($p0){if($p0){Rcd.Air.Origami._Elements.get_$C().addClass('loading');}else{Rcd.Air.Origami._Elements.get_$C().removeClass('loading');}Rcd.Air.Origami._Elements.$11=$p0;return $p0;}
Rcd.Air.Origami.FontDef=function(family,title){this.Family=family;this.Title=title;}
Rcd.Air.Origami.FontDef.prototype={Family:null,Title:null}
Rcd.Air.Origami._FontsList=function(){}
Rcd.Air.Origami._FontsList.$0=function(){if(Rcd.Air.Origami._FontsList.$1){return;}Rcd.Air.Origami._FontsList.$1=true;var $0=[];if(Rcd.Air._UserAgent.get_$4()){$0.add(new Rcd.Air.Origami.FontDef('Candara','Candara'));$0.add(new Rcd.Air.Origami.FontDef('Myriad Pro','Myriad'));$0.add(new Rcd.Air.Origami.FontDef('Calibri','Calibri'));$0.add(new Rcd.Air.Origami.FontDef('Tahoma','Tahoma'));$0.add(new Rcd.Air.Origami.FontDef('Segoe UI','Segoe'));}if(Rcd.Air._UserAgent.get_$3()){$0.add(new Rcd.Air.Origami.FontDef('Liberation Sans','Liberation'));$0.add(new Rcd.Air.Origami.FontDef('URW Gothic L','Gothic'));$0.add(new Rcd.Air.Origami.FontDef('DejaVu Sans','DejaVu'));$0.add(new Rcd.Air.Origami.FontDef('FreeSans','FreeSans'));}$0.add(new Rcd.Air.Origami.FontDef('Sans-Serif','Arial'));$0.add(new Rcd.Air.Origami.FontDef('-','-'));if(Rcd.Air._UserAgent.get_$4()){$0.add(new Rcd.Air.Origami.FontDef('Cambria','Cambria'));$0.add(new Rcd.Air.Origami.FontDef('Georgia','Georgia'));$0.add(new Rcd.Air.Origami.FontDef('Bookman Old Style','Bookman'));$0.add(new Rcd.Air.Origami.FontDef('Serif','Times'));}else if(Rcd.Air._UserAgent.get_$3()){$0.add(new Rcd.Air.Origami.FontDef('URW Bookman L','Bookman'));$0.add(new Rcd.Air.Origami.FontDef('Serif','Serif'));$0.add(new Rcd.Air.Origami.FontDef('URW Palladio L','Palladio'));$0.add(new Rcd.Air.Origami.FontDef('Century Schoolbook L','Century'));}else{$0.add(new Rcd.Air.Origami.FontDef('Serif','Times'));}var $1=[];for(var $2=0;$2<$0.length;++$2){var $3=$0[$2];if($3.Title==='-'||Rcd.Air.Origami._FontDetector.$0($3.Family)){$1.add($3);}}Rcd.Air.Origami._FontsList.$3=($1[0]).Family;origamiNative_SetFontsList($1);;}
Rcd.Air.Origami._FontsList.get_$2=function(){if(!Rcd.Air.Origami._FontsList.$3){throw new Error('No default font.');}return Rcd.Air.Origami._FontsList.$3;}
Rcd.Air.Origami._JaxxSpecific=function(){}
Rcd.Air.Origami._JaxxSpecific.$0=function($p0){var $0=new XMLHttpRequest();var $1='/?origami&mode=leaf&book='+$p0+'&pages='+(++Rcd.Air.Origami._JaxxSpecific.$1);$0.open('GET',$1,true);$0.send(null);}
Rcd.Air.Origami._JaxxSpecific.$7=function($p0,$p1,$p2){return'/?origami&mode=fragment&book='+$p0+'&first='+$p1+'&count='+$p2;}
Rcd.Air.Origami._JaxxSpecific.$8=function($p0,$p1,$p2,$p3){var $0=Rcd.Air.Origami._JaxxSpecific.$7($p0,$p1,$p2);Rcd.Air._Jaxx.$0($0,false,true,$p3,null);}
Rcd.Air.Origami._JaxxSpecific.$9=function($p0,$p1,$p2){var $0=Rcd.Air.Origami._JaxxSpecific.$7($p0,$p1,$p2);var $1=null;Rcd.Air._Jaxx.$0($0,true,true,Delegate.create(null,function($p1_0,$p1_1){$1=$p1_1;}),null);return $1;}
Rcd.Air.Origami._LoadTask=function(){}
Rcd.Air.Origami._EdgeCoord=function(iBlockIndex,iSkipLines){if(iSkipLines<0){throw new Error('iSkipLines='+iSkipLines+' must not be negative.');}if(iBlockIndex<0){throw new Error('iBlockIndex='+iBlockIndex+' must not be negative.');}this.$1=iBlockIndex;this.$2=iSkipLines;}
Rcd.Air.Origami._EdgeCoord.$0=function($p0){var $0=0;var $1=0;try{if($p0){var $2=$p0.split(':');$0=Number.parse($2[0]);$1=Number.parse($2[1]);}}catch($3){$0=$1=0;}if($0<0){$0=0;}if($1<0){$1=0;}return new Rcd.Air.Origami._EdgeCoord($0,$1);}
Rcd.Air.Origami._EdgeCoord.prototype={$1:0,$2:0,$3:function($p0){return(this.$1===$p0.$1)&&(this.$2===$p0.$2);},$4:function(){return this.$1+':'+this.$2;}}
Rcd.Air.Origami._LoadPageTask=function(){}
Rcd.Air.Origami._LoadPageTask.prototype={$0:0,$1:false,$2:null,$3:null,$4:null}
Rcd.Air.Origami._LoadPageQueue=function(){this.$0=[];}
Rcd.Air.Origami._LoadPageQueue.prototype={$1:function(){this.$0.clear();},$2:function($p0){if(!$p0){throw new Error('The value must not be null.');}if($p0.$3){if($p0.$3.$7<0){throw new Error('oLPC.WireAtLeft has no content.');}}if($p0.$4){if($p0.$4.$7<0){throw new Error('oLPC.WireAtRight has no content.');}}this.$0.add($p0);},$3:function(){if(this.get_$4()){return null;}else{var $0=this.$0[0];this.$0.removeAt(0);if(!$0){throw new Error('oResult==null');}return $0;}},get_$4:function(){return this.$0.length<=0;}}
Rcd.Air.Origami.Entrance=function(){}
Rcd.Air.Origami.Entrance.Go=function(s){Rcd.Air.Origami.Entrance.m=new Rcd.Air.Origami._Master(s);}
Rcd.Air.Origami.Entrance.GotoBlock=function(block){Rcd.Air.Origami.Entrance.m.$4B(new Rcd.Air.Origami._EdgeCoord(block,0),true);}
Rcd.Air.Origami.Entrance.SetFont=function(fontName){Rcd.Air.Origami.Entrance.m.$6(fontName);}
Rcd.Air.Origami._Master=function(sBookID){this.$E=-1;this.$15=-1;this.$17=-1;this.$19=-1;this.$23=new Rcd.Air.Origami._Keystroke();this.$2A=new Rcd.Air.Origami._LoadPageQueue();this.$2E=Rcd.Air.Origami._Master.$2D;this.$40=-1;this.$54=-1;this.$55=-1;try{if(window.location.href.startsWith('file:')){Rcd.Air._ErrorReporter.$1=false;document.body.innerHTML='<br/><br/>\r\n              <center style=\"font-size:14px;\">\r\n                We\'re sorry, but the book cannot be open from local disk.<br/>\r\n                Please use our online reader at <a href=\"http://vidimfigu.com\">vidimfigu.com</a>.\r\n              </center>';return;}this.$13=sBookID;if(!this.$13){throw new Error('Cannot extract book id from URI \''+window.location.href+'\'.');}window.attachEvent('onload',Delegate.create(this,this.$5A));}catch($0){Rcd.Air._ErrorReporter.$5($0);}}
Rcd.Air.Origami._Master.$1F=function($p0){var $0=window.location.href;window.location.href=Rcd.Air._UrlHelper.$1($0,'chromeBug',$p0.toString());}
Rcd.Air.Origami._Master.$20=function(){var $0=window.location.href;var $1=Rcd.Air._UrlHelper.$0($0,'chromeBug');if(!$1){return-1;}else{return Number.parse($1);}}
Rcd.Air.Origami._Master.prototype={get_$0:function(){return Rcd.Air._DomHelper.$1('topBar');},get_$1:function(){return Rcd.Air._DomHelper.$1('controls');},$2:null,get_$4:function(){return this.$2.get_$5()-1;},$5:function($p0,$p1){var $0=$p0.ownerDocument.createElement('p');$p0.appendChild($0);$0.innerText=$p1.text;},$6:function($p0){this.set_$1A($p0);this.$52.set_$2($p0);this.$1E(1);this.$12();},$7:function($p0){var $0=1.15;this.$1E(($p0)?$0:1/$0);this.$12();},$8:function(){try{this.$7(true);}catch($0){Rcd.Air._ErrorReporter.$5($0);}},$9:function(){try{this.$7(false);}catch($0){Rcd.Air._ErrorReporter.$5($0);}},$A:function(){try{this.$34(false);}catch($0){Rcd.Air._ErrorReporter.$5($0);}},$B:function(){try{this.$34(true);}catch($0){Rcd.Air._ErrorReporter.$5($0);}},$C:function($p0){this.$52.$3($p0);Rcd.Air.Origami._Elements.set_$B($p0);Rcd.Air.Origami._Elements.get_$E().set_cssVisible($p0);Rcd.Air.Origami._Elements.set_$A(!$p0);},$D:function(){try{this.$C(false);if(this.$E>=0){window.clearTimeout(this.$E);}this.$E=window.setTimeout(Delegate.create(this,this.$F),500);}catch($0){Rcd.Air._ErrorReporter.$5($0);}},$F:function(){try{this.$E=-1;if(this.$52.get_$E()<0){return;}var $0=true;var $1=Rcd.Air._DomHelper.get_$4();if(this.$10){$0=($1[0]!==this.$10[0]||$1[1]!==this.$10[1]);}this.$10=$1;if($0){this.$1E(1);this.$12();}else{this.$C(true);}}catch($2){Rcd.Air._ErrorReporter.$5($2);}},$10:null,$11:function(){try{var $0=Rcd.Air._DomHelper.get_$4();if(this.$10){if(($0[0]===this.$10[0])||($0[1]===this.$10[1])){return;}}this.$10=$0;if(this.$52.get_$E()<0){return;}this.$1E(1);this.$12();}catch($1){Rcd.Air._ErrorReporter.$5($1);}},$12:function(){this.$33();for(var $0=this.$52.get_$D()-1;$0>=0;--$0){var $1=this.$52.get_item($0);$1.$19.$6();$1.$1A.$6();$1.$7=-1;}this.$4B(new Rcd.Air.Origami._EdgeCoord(this.$52.get_item(this.$52.get_$E()).$0,this.$52.get_item(this.$52.get_$E()).$3),true);},$13:null,get_$14:function(){return Rcd.Air._Utils.$4(this.$15,'PageContentMaxHeight:get');},set_$14:function($p0){this.$15=Rcd.Air._Utils.$4($p0,'PageContentMaxHeight:set');return $p0;},get_$16:function(){return Rcd.Air._Utils.$4(this.$17,'PageContentMaxWidth:get');},set_$16:function($p0){this.$17=Rcd.Air._Utils.$4($p0,'PageContentMaxWidth:set');return $p0;},get_$18:function(){return Rcd.Air._Utils.$4(this.$19,'PagePaperWidth:get');},set_$18:function($p0){this.$19=Rcd.Air._Utils.$4($p0,'PagePaperWidth:set');return $p0;},get_$1A:function(){if(!this.$1B){try{this.$1B=Rcd.Air.Origami._Cook.$1('ff');}catch($0){}if(!this.$1B){this.$1B=Rcd.Air.Origami._FontsList.get_$2();}if(!this.$1B){throw new Error('Cannot detect the font family.');}}return this.$1B;},set_$1A:function($p0){if(!$p0){throw new Error('The FontFamily set-value is null.');}if($p0!==this.get_$1A()){Rcd.Air.Origami._Cook.$0('ff',$p0,365*10);this.$1B=$p0;}this.$5B($p0);return $p0;},$1B:null,get_$1C:function(){if(this.$1D<=0){try{this.$1D=Number.parse(Rcd.Air.Origami._Cook.$1('zoom'));}catch($0){}if(this.$1D<=0){this.$1D=1;}}return this.$1D;},set_$1C:function($p0){$p0=Math.round($p0*1000)/1000;if($p0>=0.98&&$p0<=1.02){$p0=1;}if($p0>1.4){$p0=1.4;}if($p0<0.6){$p0=0.6;}this.$1D=$p0;Rcd.Air.Origami._Cook.$0('zoom',this.$1D.toString(),365*10);return $p0;},$1D:0,$1E:function($p0){this.$53(true);this.set_$1C(this.get_$1C()*$p0);var $15=242;var $16=$15/this.$54;this.$52.set_$1(this.get_$1C()*$16);var $0=7;this.$53(false);var $1=Rcd.Air._DomHelper.$1('pagesHere');var $2=Rcd.Air.Origami._Elements.get_$2().get_dom();var $3=Rcd.Air.Origami._Elements.get_$3().get_dom();$2.style.display=$3.style.display='none';this.$52.$4(false);var $4,$5;var $17=Rcd.Air._DomHelper.get_$4();$4=$17[0];$5=$17[1];if($4<=0){if(Rcd.Air._UserAgent.get_$5()){var $18=Math.max(0,Rcd.Air.Origami._Master.$20());if($18<5){Rcd.Air.Origami._Master.$1F($18+1);}}}if($4<=0){throw new Error('iClientWidth='+$4+'.');}if($5<=0){throw new Error('iClientHeight='+$5+'.');}$2.style.display=$3.style.display='block';var $19=this.$52.get_$E();if($19>=0){this.$52.get_item($19).set_$1E(true);}var $6=this.get_$0().offsetHeight;var $7=$5-$6-$0;var $8=(Math.round($4*0.98*0.5)-2);var $9=0.077;var $A=0.077;var $1A=this.$54*2;var $1B=$1A/(1-$A+$9);if($8>$1B){$8=Math.floor($1B);}var $1C=1.618034;var $1D=Math.round($8*$1C);if($7>$1D){$7=$1D;}if($7<=0){throw new Error('p-height: '+$7);}if($8<=0){throw new Error('p-width: '+$8);}this.set_$18($8);var $B=this.get_$0().offsetHeight+$7+$0;var $C=Math.floor(($5-$B)*0.5);this.get_$0().style.marginTop=$C+'px';var $D=$C+$6;var $E=$D+$7;var $F=$8*2+2;var $10=Math.floor($4*0.5);var $11=$10-$8-1;$2.style.top=$3.style.top=$D+'px';$2.style.height=$3.style.height=$7+'px';$2.style.width=$3.style.width=$8+'px';$2.style.left=$11+'px';$3.style.left=$10+'px';var $12=Math.floor($8*$9);var $13=Math.ceil($8*$A);var $1E=$7-$12*2;if($1E<=0){throw new Error('pcmh='+$1E+', ph='+$7+', po='+$12+'.');}var $1F=$8-$12-$13;if($1F<=0){throw new Error('pcmw='+$1F+', pw='+$8+', po='+$12+', pi='+$13+'.');}this.set_$14($1E);this.set_$16($1F);var $14=$11;for(var $20=this.$52.get_$D()-1;$20>=0;--$20){var $21=this.$52.get_item($20);$21.$19.$4.set_$6($21.$1A.$4.set_$6(this.get_$14()));$21.$19.set_$A(this.get_$16());$21.$1A.set_$A(this.get_$16());$21.$19.set_$C($21.$1A.set_$C($D+$12));$21.$19.set_$B($11+$12);$21.$1A.set_$B($10+$13);}Rcd.Air.Origami._Elements.get_$0().get_item(0).style.left=($14-12)+'px';Rcd.Air.Origami._Elements.get_$0().get_item(0).style.top=($D-12)+'px';Rcd.Air.Origami._Elements.get_$1().get_dom().style.width=($F-24-1)+'px';Rcd.Air.Origami._Elements.get_$1().get_dom().style.height=($7-24+2)+'px';$('topBar').style.width=$F+'px';this.set_$3F(-1);},$21:false,$22:function($p0,$p1){try{if(this.$21){throw new Error('Duplicate MouseScroll handler.');}try{this.$21=true;this.$34($p1<0);}finally{this.$21=false;}}catch($0){Rcd.Air._ErrorReporter.$5($0);}},$24:function(){try{this.$23.$1(window.event.keyCode);if(this.$23.$2('hi')){alert('Hello, my Master.');}else if(this.$23.$2('callonerr')){eval('window.onerror(\'a\',\'b\',\'c\')');}else if(this.$23.$2('okd')){eval('alert(document.onkeydown)');}else if(this.$23.$2('showonerr')){eval('alert(window.onerror)');}else if(this.$23.$2('exc')){throw new Error('Simulated exception.');}else if(this.$23.$2('err')){var $8=null;$8=$8.toLowerCase();}else if(this.$23.$2('erpo')){try{throw new Error('oops!');}catch($9){alert(Rcd.Air._ErrorReporter.$2($9));}}if(this.$23.$3){return;}var $0=33;var $1=34;var $2=220;var $3=32;var $4=37;var $5=39;var $6=38;var $7=40;switch(window.event.keyCode){case $1:case $5:case $7:case $3:this.$34(true);break;case $4:case $6:case $0:this.$34(false);break;case $2:if(window.event.ctrlKey){var $A=this.$52.get_item(this.$52.get_$E());alert('view:   '+this.$52.get_$E()+'\n'+'alphabet: '+this.$54+'x'+this.$55+'\n'+'content: '+this.get_$18()+'x'+this.get_$14()+'\n'+'words:  '+this.get_$3F()+'\n'+'blocksPerPage: '+Rcd.Air.Origami._BlocksPerPageAverage.get_$0()+'\n'+'AJAX response: '+this.$2.$F+'+'+(this.$2.$E-this.$2.$F)+'ms ('+this.$2.$10+' chars)\n'+'render: '+this.$49+'ms');}break;default:break;}}catch($B){Rcd.Air._ErrorReporter.$5($B);}},$25:function($p0){var $0=$p0.$4();this.$26=$0;this.set_$5F($0);this.set_$5E($0);},$26:null,$28:function($p0){return($p0.$0<=0)&&$p0.get_$6();},$29:function($p0){return($p0.$1>=this.get_$4())&&$p0.get_$5();},$2B:function($p0){if(this.$2E!==Rcd.Air.Origami._Master.$2D){throw new Error('AsyncLoadNeighbors: LoadPageCallbackin.Busy');}$p0.$10();var $0=this.$52.$5($p0.$8);if($0){$0.$10();}var $1=this.$52.$5($p0.$9);if($1){$1.$10();}if(!$1){if(!this.$28($p0)){var $2=new Rcd.Air.Origami._LoadPageTask();$2.$4=$p0;$2.$2=this.$3C($p0,false);$2.$1=false;$2.$0=this.$52.get_$A();this.$52.get_item($2.$0).$10();this.$2A.$2($2);}}if(!$0){if(!this.$29($p0)){var $3=new Rcd.Air.Origami._LoadPageTask();$3.$3=$p0;$3.$2=this.$3C($p0,true);$3.$1=true;$3.$0=this.$52.get_$A();this.$52.get_item($3.$0).$10();this.$2A.$2($3);}}if(!this.$2A.get_$4()){Rcd.Air.Origami._Elements.set_$10(true);this.$2E=window.setTimeout(Delegate.create(this,this.$30),25);}},get_$2C:function(){if(this.$2E!==Rcd.Air.Origami._Master.$2D){return true;}if(this.$37.get_$6()){return true;}return false;},set_$2C:function($p0){if($p0){throw new Error('false value expected.');}window.clearTimeout(this.$2E);this.$2E=Rcd.Air.Origami._Master.$2D;this.$37.$7();return $p0;},$2F:0,$30:function(){window.clearTimeout(this.$2E);this.$2E=Rcd.Air.Origami._Master.$2D;try{var $0=this.$2A.$3();if(!$0){return;}this.$41($0.$2,$0.$0,$0.$1,Delegate.create(this,function(){try{this.$52.get_item($0.$0).$D($0.$3,$0.$4);if(this.$2A.get_$4()){Rcd.Air.Origami._Elements.set_$10(false);}else{this.$30();}}catch($1_0){Rcd.Air._ErrorReporter.$5($1_0);}}));}catch($1){Rcd.Air._ErrorReporter.$5($1);}},$31:function($p0){for(var $0=this.$52.get_$D()-1;$0>=0;--$0){var $1=this.$52.get_item($0);if($1.get_$E()!==$p0){$1.$8=-1;$1.$7=-1;$1.$9=-1;}}},$32:function(){try{eval('origamiNative_BeforePageUpdate()');}catch($0){}},$33:function(){try{eval('origamiNative_BeforePageUpdate()');}catch($0){}},$34:function($p0){if(this.$35){return;}this.$35=true;this.$32();var $0=this.$36($p0,Delegate.create(this,function(){this.$35=false;}));if(!$0){this.$35=false;}},$35:false,$36:function($p0,$p1){if(Rcd.Air.Origami._Elements.get_$A()){return false;}if(this.get_$2C()){return false;}var $0=this.$52.get_item(this.$52.get_$E());if($p0&&this.$29($0)){return false;}if(!$p0&&this.$28($0)){return false;}var $1=(($p0)?this.$52.get_$7():this.$52.get_$8());if($1<0){Rcd.Air.Origami._Elements.set_$A(true);this.$50=true;return false;}else{Rcd.Air.Origami._Elements.set_$A(false);this.$50=false;}this.$52.set_$E((($p0)?this.$52.get_$7():this.$52.get_$8()));var $2=this.$52.get_item(this.$52.get_$E());if(this.$28($2)){this.$31($2.get_$E());}this.$37.$5['onFinish']=$p1;this.$37.$3();return true;},$37:null,$38:function($p0){try{var $0=this.$52.get_item(this.$52.get_$E());this.$4D();this.$2B($0);var $1=this.$37.$5['onFinish'];if($1){$1.invoke();}}catch($2){Rcd.Air._ErrorReporter.$5($2);}},get_$39:function(){return this.get_$4()-1;},$3A:function(){var $0=this.$52.get_item(this.$52.get_$E());var $1=$0.$0+($0.$1-$0.$0)*0.5;var $2;if($0.$1>=this.get_$4()){$2=100;}else if($0.$0<=1){$2=0;}else{$2=Math.round($1*100/this.get_$39());}Rcd.Air._DomHelper.$1('bookProgressCurrent').style.width=($2*2)+'px';Rcd.Air._DomHelper.$1('pageNum').innerText=$2+'%';},$3B:function($p0){var $0=Rcd.Air._DomHelper.$12($p0,'div','paperPage');var $1=Rcd.Air._DomHelper.$12($0,'div','paperPageContent');$0.appendChild($1);return $1;},$3C:function($p0,$p1){if($p1){return this.$3D($p0.$1,$p0.$4);}else{return this.$3E($p0.$0,$p0.$2);}},$3D:function($p0,$p1){if($p1<0){return new Rcd.Air.Origami._EdgeCoord($p0+1,0);}else{return new Rcd.Air.Origami._EdgeCoord($p0,$p1);}},$3E:function($p0,$p1){if($p1<0){return new Rcd.Air.Origami._EdgeCoord($p0-1,0);}else{return new Rcd.Air.Origami._EdgeCoord($p0,$p1);}},get_$3F:function(){if(this.$40<0){var $0=this.$54/33;var $1=this.get_$18()/$0;var $2=this.get_$14()/this.$55;var $3=$2*$1;this.$40=Math.round($3*2*1.75);}return this.$40;},set_$3F:function($p0){this.$40=$p0;return $p0;},$41:function($p0,$p1,$p2,$p3){var $0=this.$52.get_item($p1);this.$48($p0,$p1,$p2,this.$2F,$p3);return true;},$42:0,$43:function($p0,$p1,$p2,$p3,$p4,$p5,$p6,$p7){if(!$p1){throw new Error('oCoord=null');}this.$2.$C($p1.$1,($p2)?$p4:-$p4,Delegate.create(this,function($p1_0,$p1_1,$p1_2,$p1_3){try{var $1_0=$p1_3;var $1_1=new Rcd.Air.Origami._PageWriter($p0.$4,$1_0,$p1,this.get_$14()-$p0.get_$9()-$p0.get_$8(),this.get_$16(),$p2,this.$2.get_$5());if($1_1.$22){var $1_2=Rcd.Air.Origami._BlockKeeper.$0($1_1.get_$1D());if($1_2<0){throw new Error('lwbi='+$1_2+'.');}if($1_2!==$p3){var $1_3=null;if($1_2===$p6){$1_3='Last written block is the same.';}else if($p1_2>$p1_3.length){$1_3='No more blocks in the book.';}else if($p5>=20){$1_3='Recursion is too deep.';}if($1_3){throw new Error($1_3+' '+'Fragment '+$p1_1+':'+$p1_2+':'+$p1_3.length+'. '+'lwbi='+$1_2+', '+'labi='+($p1_1+$p1_3.length-1));}var $1_4=Math.ceil($p4*1.5);if($1_4===$p4){throw new Error('bc='+$p4+' not changed.');}this.$43($p0,$p1,$p2,$p3,$1_4,$p5+1,$1_2,$p7);return;}}if(!$1_1.$22){var $1_5=Math.abs(Rcd.Air.Origami._BlockKeeper.$0($1_1.get_$1C())-Rcd.Air.Origami._BlockKeeper.$0($1_1.get_$1D()));Rcd.Air.Origami._BlocksPerPageAverage.$2($1_5);}$p0.$7(this.get_$14());$p7.invoke($1_1);}catch($1_6){Rcd.Air._ErrorReporter.$5($1_6);}}));},$44:function($p0,$p1,$p2,$p3,$p4){if(!$p0){$p4.invoke(null);return;}if(!$p2){throw new Error('coord=null');}++this.$42;var $0=($p3)?this.$2.get_$9():this.$2.get_$8();var $1=Math.ceil(Rcd.Air.Origami._BlocksPerPageAverage.get_$0()*1.25);if($1<=1){$1=2;}this.$43($p1,$p2,$p3,$0,$1,0,-1,$p4);},$45:function($p0,$p1,$p2){++this.$42;var $0=($p2)?this.$2.get_$9():this.$2.get_$8();var $1=Math.ceil(Rcd.Air.Origami._BlocksPerPageAverage.get_$0()*1.25);if($1<=1){$1=2;}if(this.$42===2){$p0.set_$5(Rcd.Air.Origami._Constants.get_$1());}for(var $2=0;;++$2){if($2>=500){throw new Error('Too many iterations made.');}var $3=this.$2.$D($p1.$1,($p2)?$1:-$1);var $4=new Rcd.Air.Origami._PageWriter($p0.$4,$3,$p1,this.get_$14()-$p0.get_$9()-$p0.get_$8(),this.get_$16(),$p2,this.$2.get_$5());if($4.$22){if(Rcd.Air.Origami._BlockKeeper.$0($4.get_$1D())!==$0){var $5=Math.ceil($1*1.5);if($5===$1){throw new Error('iBlocksCount='+$1+' not changed.');}$1=$5;continue;}}if(!$4.$22){var $6=Math.abs(Rcd.Air.Origami._BlockKeeper.$0($4.get_$1C())-Rcd.Air.Origami._BlockKeeper.$0($4.get_$1D()));Rcd.Air.Origami._BlocksPerPageAverage.$2($6);}$p0.$7(this.get_$14());return $4;}},$46:false,$47:function($p0){if(!$p0.get_$5()){$p0.set_$5('placeholder');if($p0.get_$A()>=468){$p0.set_$5('<iframe style=\"width:468px;height:15px;overflow:hidden;border:0;margin:2px auto 0 auto;\" src=\"/ads/adsense-478x15.html\"></iframe>');return true;}else{$p0.set_$5(null);}}return false;},$48:function($p0,$p1,$p2,$p3,$p4){if($p3!==this.$2F){return true;}var $0=this.$52.get_item($p1);var $1=Rcd.Air.Origami._BlocksPerPageAverage.get_$0()*10;var $2=0;for(var $3=2;$3<10;++$3){if(this.$4E===(1<<$3)){$2=(Math.random()>=0.5)?1:2;break;}}if(this.$46){$2=0;}this.$2.$C($p0.$1,($p2)?$1:-$1,Delegate.create(this,function($p1_0,$p1_1,$p1_2,$p1_3){if($p3!==this.$2F){return;}try{var $1_0=$p1_3;var $1_1=Date.get_now();$0.$19.$6();$0.$1A.$6();var $1_2=0;var $1_3=($p2)?this.$2.get_$9():this.$2.get_$8();var $1_4=($p2)?1:-1;if(!$p0){throw new Error('First page oCoord is NULL.');}var $1_5=($p2)?$0.$19:$0.$1A;if($2===1){this.$47($1_5);}this.$44(true,$1_5,$p0,$p2,Delegate.create(this,function($p2_0){try{if($p3!==this.$2F){return;}if($p2_0.$22){$1_2=1;}var $2_0=(!$1_2);var $2_1=null;if($2_0){if($p2){$2_1=this.$3D(Rcd.Air.Origami._BlockKeeper.$0($p2_0.get_$1D()),$p2_0.$20);}else{$2_1=this.$3E(Rcd.Air.Origami._BlockKeeper.$0($p2_0.get_$1D()),$p2_0.$20);}}if($2_0&&!$2_1){throw new Error('oNextCoord for the second page is null.');}var $2_2=($p2)?$0.$1A:$0.$19;if($2===2){this.$47($2_2);}if(this.$46&&$2_0){$2_2.set_$5(Rcd.Air.Origami._Constants.get_$1());}this.$46=false;this.$44($2_0,$2_2,$2_1,$p2,Delegate.create(this,function($p3_0){try{if($p3!==this.$2F){return;}if($p3_0){if($p3_0.$22){$1_2=2;}}var $3_0=($p2)?$p2_0:$p3_0;var $3_1=($p2)?$p3_0:$p2_0;if($1_2>0){if(!$p2){var $3_2=$3_1;if($3_0){$3_2=$3_0;}if(Rcd.Air.Origami._BlockKeeper.$0($3_2.get_$1D())===0){this.$48(new Rcd.Air.Origami._EdgeCoord(0,0),$p1,true,$p3,$p4);return;}else{throw new Error('Unexpected underflow.');}}}this.$49=Date.get_now().getTime()-$1_1.getTime();if($p2){if($1_2===1){if($3_1){throw new Error('oPwRight!=null');}$3_1=$3_0;}$0.$0=$p0.$1;$0.$2=$3_0.$1F;$0.$1=Rcd.Air.Origami._BlockKeeper.$0($3_1.get_$1D());$0.$4=$3_1.$20;$0.$3=$p0.$2;}else{$0.$0=Rcd.Air.Origami._BlockKeeper.$0($3_0.get_$1D());$0.$2=$3_0.$20;$0.$1=Rcd.Air.Origami._BlockKeeper.$0($3_1.get_$1C());$0.$4=$3_1.$1F;$0.$3=$3_0.$21;}if($p4){$p4.invoke();}this.$4F();}catch($3_3){Rcd.Air._ErrorReporter.$5($3_3);}}));}catch($2_3){Rcd.Air._ErrorReporter.$5($2_3);}}));}catch($1_6){Rcd.Air._ErrorReporter.$5($1_6);}}));return true;},$49:0,$4A:function($p0,$p1){return $p1.getTime()-$p0.getTime();},$4B:function($p0,$p1){this.$4C($p0,$p1,null);},$4C:function($p0,$p1,$p2){++this.$2F;Rcd.Air.Origami._Elements.set_$B(true);Rcd.Air.Origami._Elements.set_$10(true);this.$50=false;this.set_$2C(false);this.$31(-1);this.$2A.$1();Rcd.Air.Origami._Elements.set_$A(true);this.$46=true;this.$41($p0,0,$p1,Delegate.create(this,function(){try{if($p2){$p2.invoke();}Rcd.Air.Origami._Elements.get_$E().set_cssVisible(true);Rcd.Air.Origami._Elements.set_$A(false);this.$52.get_item(0).$D(null,null);this.$52.set_$E(0);this.$4D();this.$2B(this.$52.get_item(0));this.$C(true);}catch($1_0){Rcd.Air._ErrorReporter.$5($1_0);}}));},$4D:function(){try{var $0=this.$52.get_item(this.$52.get_$E());this.set_$58(!this.$28($0));this.set_$59(!this.$29($0));this.$25(new Rcd.Air.Origami._EdgeCoord($0.$0,$0.$3));this.$3A();Rcd.Air.Origami._JaxxSpecific.$0(this.$13);++this.$4E;}catch($1){Rcd.Air._ErrorReporter.$5($1);}},$4E:0,$4F:function(){try{if(this.$50){this.$50=false;Rcd.Air.Origami._Elements.set_$A(false);}}catch($0){Rcd.Air._ErrorReporter.$5($0);}},$50:false,$51:function(){try{var $0=200;var $1=window.event.offsetX;var $2=this.get_$4()-1;var $3=Math.round(($1*$2)/$0+1);if($3<0){$3=0;}else if($3>this.get_$4()){$3=this.get_$4();}if($3<this.get_$4()){this.$4B(new Rcd.Air.Origami._EdgeCoord($3,0),true);}else{this.$4B(new Rcd.Air.Origami._EdgeCoord($3,0),false);}}catch($4){Rcd.Air._ErrorReporter.$5($4);}},$52:null,$53:function($p0){var $0=this.$52.get_item(this.$52.get_$A());var $1=0;if($p0){$1=$0.get_$17();if($1!==1){$0.set_$17(1);}}$0.$C();$0.set_$1E(true);$0.$1A.$6();var $2=Rcd.Air._DomHelper.$12($0.$1A.get_$D(),'p',null);$2.innerText='\u0430\u0431\u0432';$2.style.margin='0px';$2.style.padding='0px';$2.style.textIndent='0px';$2.style.display='inline';this.$54=$2.offsetWidth*11;this.$55=$2.offsetHeight;if(this.$54<=0){throw new Error('Just measured AW='+this.$54+'.');}if(this.$55<=0){throw new Error('Just measured AH='+this.$55+'.');}$0.set_$1E(false);$0.$1A.$6();if($p0){if($1!==1){$0.set_$17($1);}}},$56:null,$57:null,get_$58:function(){throw new Error('not implemented');},set_$58:function($p0){Rcd.Air._DomHelper.$B(this.$57,($p0)?1:0.5);return $p0;},get_$59:function(){throw new Error('not implemented');},set_$59:function($p0){Rcd.Air._DomHelper.$B(this.$56,($p0)?1:0.5);return $p0;},$5A:function(){try{Rcd.Air._ErrorReporter.$0=Rcd.Air.Origami._Constants.get_$3();Rcd.Air.Origami._FontsList.$0();this.$2=new Rcd.Air.Origami._BlockKeeper(this.$13);this.$37=new Rcd.Air.Origami._Callbackin(250,Delegate.create(this,this.$38));window.attachEvent('onbeforeunload',Delegate.create(this,this.$60));window.attachEvent('onunload',Delegate.create(this,this.$61));window.document.attachEvent('onkeydown',Delegate.create(this,this.$24));window.attachEvent('onresize',Delegate.create(this,this.$D));Rcd.Air._EasyMouseScroll.$0(Delegate.create(this,this.$22));Rcd.Air._DomHelper.$1('nextPageImg').attachEvent('onclick',Delegate.create(this,this.$B));Rcd.Air._DomHelper.$1('prevPageImg').attachEvent('onclick',Delegate.create(this,this.$A));Rcd.Air._DomHelper.$1('imgZoom').attachEvent('onclick',Delegate.create(this,this.$8));Rcd.Air._DomHelper.$1('imgUnzoom').attachEvent('onclick',Delegate.create(this,this.$9));var $0=Rcd.Air._DomHelper.$1('pagesHere');this.$52=new Rcd.Air.Origami._ViewsCollection($0);this.$56=Rcd.Air._DomHelper.$1('nextPageImg');this.$57=Rcd.Air._DomHelper.$1('prevPageImg');Rcd.Air._DomHelper.$1('bookProgressClickable').attachEvent('onclick',Delegate.create(this,this.$51));this.$52.set_$2(this.get_$1A());this.$5B(this.get_$1A());this.$1E(1);this.$4B(Rcd.Air.Origami._EdgeCoord.$0(this.get_$5D()),true);Rcd.Air._EasyHash.$0(Delegate.create(this,this.$5C));}catch($1){Rcd.Air._ErrorReporter.$5($1);}},$5B:function($p0){origamiNative_EmphasizeFont($p0);},$5C:function($p0,$p1){if(!$p0||!$p0.startsWith('#')){return;}if(!$p1||!$p1.startsWith('#')){return;}var $0=$p1.remove(0,1);if(this.$26===$0){return;}var $1;try{$1=Rcd.Air.Origami._EdgeCoord.$0($0);}catch($2){$1=null;}if($1){this.$4B($1,true);}},get_$5D:function(){var $0=this.get_$5E();if($0){return $0;}$0=this.get_$5F();return $0;},get_$5E:function(){var $0=window.location.hash;if(!$0){return null;}if($0.startsWith('#')){$0=$0.remove(0,1);}if($0.indexOf(':')<0){return null;}return $0;},set_$5E:function($p0){var $0=window.location.href.split('#');if(($0.length>2)||($0.length<1)){throw new Error('a.Length='+$0.length);}var $1=$0[0]+'#'+this.$26;window.navigate($1);return $p0;},get_$5F:function(){var $0=Rcd.Air.Origami._Cook.$1('bookpos');if($0){var $1=new Rcd.Air.Origami._BookPositions($0);return $1.get_item(this.$13);}return null;},set_$5F:function($p0){var $0=new Rcd.Air.Origami._BookPositions(Rcd.Air.Origami._Cook.$1('bookpos'));$0.set_item(this.$13,this.$26);Rcd.Air.Origami._Cook.$0('bookpos',$0.$3(),365*9);return $p0;},$60:function(){try{Rcd.Air._ErrorReporter.$1=false;}catch($0){Rcd.Air._ErrorReporter.$5($0);}},$61:function(){try{Rcd.Air._ErrorReporter.$1=false;}catch($0){Rcd.Air._ErrorReporter.$5($0);}}}
Rcd.Air.Origami._LinesAndOffset=function(){}
Rcd.Air.Origami._LinesAndOffset.prototype={$0:0,$1:0,$2:0}
Rcd.Air.Origami._LineInfo=function(){}
Rcd.Air.Origami._LineInfo.prototype={$0:0,$1:0}
Rcd.Air.Origami._LinesAndOffsetEx=function(){Rcd.Air.Origami._LinesAndOffsetEx.constructBase(this);}
Rcd.Air.Origami._LinesAndOffsetEx.prototype={$3:false}
Rcd.Air.Origami._LaoFinder=function(){}
Rcd.Air.Origami._LaoFinder.$1=function($p0,$p1,$p2){var $0=Rcd.Air.Origami._LaoFinder.$5($p0,$p1,$p2);if($0.$3){throw Error.create('The count of lines is '+$0.$0+' but the 1-based index of the requested line is '+$0.$2+'.','SKIP_LINE_OUTOFRANGE');}Rcd.Air._Utils.$2($0.$2===$p1,'lao.Line mismatch.');Rcd.Air.Origami._LaoFinder.$3($0);return $0;}
Rcd.Air.Origami._LaoFinder.$2=function($p0,$p1,$p2){if(!$p1){Rcd.Air._ErrorReporter.$3('Lao line '+$p1+'.');}var $0=Rcd.Air.Origami._LaoFinder.$5($p0,$p1,$p2);if($0.$3){var $1=$0.$0;Rcd.Air._ErrorReporter.$3('Lao fix from '+$p1+' to '+$1+'.');return Rcd.Air.Origami._LaoFinder.$1($p0,$1,$p2);}Rcd.Air._Utils.$2($0.$2===$p1,'lao.Line mismatch '+$0.$2+' vs '+$p1+'.');Rcd.Air.Origami._LaoFinder.$3($0);return $0;}
Rcd.Air.Origami._LaoFinder.$3=function($p0){Rcd.Air._Utils.$2($p0.$1>=0,'lao.Offset is '+$p0.$1+' (lines '+$p0.$0+').');var $0=Type.safeCast($p0,Rcd.Air.Origami._LinesAndOffsetEx);if($0){Rcd.Air._Utils.$2(!$0.$3,'ext.OutOfRange is TRUE.');}}
Rcd.Air.Origami._LaoFinder.$5=function($p0,$p1,$p2){if(!$p0){throw new Error('element is null.');}if($p1<=0){throw new Error('Line is not positive '+$p1+'.');}var $0=-2147483647;var $1=$0;var $2=0;var $3=$p0.getElementsByTagName('s');var $4=$3.length;var $5=$0;for(var $7=($p2)?0:($4-1);($p2)?($7<$4):($7>=0);$7+=($p2)?1:-1){var $8=$3[$7];if($8.offsetHeight<3){continue;}var $9=$8.offsetTop;if($9!==$5){if($5!==$0){if($p2&&$9<$5||!$p2&&$9>$5){continue;}}++$2;$5=$9;if($1===$0){if($2===$p1){if($p2){var $A=$8.offsetHeight;if($A<=0){throw new Error('OffsetHeight='+$A);}$1=$5+$A;}else{$1=$5;}}}}}if($1===$0){if($p1>$2){var $B=new Rcd.Air.Origami._LinesAndOffsetEx();$B.$0=$2;$B.$1=$0;$B.$2=$p1;$B.$3=true;return $B;}else{throw new Error('The offset is not modified ('+$1+').');}}var $6=new Rcd.Air.Origami._LinesAndOffsetEx();$6.$1=$1;$6.$0=$2;$6.$2=$p1;if($1<0){throw new Error('to:'+$1+' lt:'+$2+' l:'+$p1);}return $6;}
Rcd.Air.Origami._LaoFinder.$6=function($p0){if(!$p0){throw new Error('oElement is null.');}var $0=$p0.getElementsByTagName('s');var $1=$0.length;var $2=-2147483647;var $3=$2;var $4=[];for(var $5=0;$5<$1;++$5){var $6=$0[$5];var $7=$6.offsetHeight;if($7<3){continue;}var $8=$6.offsetTop;if($8!==$3){if($3!==$2){if($8<$3){continue;}}$3=$8;var $9=new Rcd.Air.Origami._LineInfo();$9.$0=$8;$9.$1=$7;$4.add($9);}}return $4;}
Rcd.Air.Origami._LaoFinder.$7=function($p0,$p1,$p2){if(!$p0){throw new Error('oElement is null.');}if($p1<0){throw new Error('iEdgePx='+$p1);}var $0=!$p2;var $1=$p0.getElementsByTagName('s');var $2=$1.length;var $3=-2147483647;var $4=$3;var $5=$3;var $6=$3;var $7=0;for(var $9=($p2)?0:$2-1;($p2)?($9<$2):($9>=0);$9+=(($p2)?1:-1)){var $A=$1[$9];if($A.offsetHeight<3){continue;}var $B=$A.offsetTop;if($B!==$6){if($6!==$3){if($p2&&$B<$6||!$p2&&$B>$6){continue;}}++$7;$6=$B;var $C=($p2)?($6+$A.offsetHeight):$6+1;if(($p2&&($C<=$p1))||($0&&($C>=$p1))){$4=$7;$5=$C;}else{}}}var $8=new Rcd.Air.Origami._LinesAndOffset();$8.$2=$4;$8.$1=$5;$8.$0=$7;return $8;}
Rcd.Air.Origami._ThreeFlooredPage=function(oParent){this.$0=Rcd.Air._DomHelper.$12(oParent,'div','threeFlooredPage');this.$1=Rcd.Air._DomHelper.$12(this.$0,'div','header');this.$4=new Rcd.Air.Origami._Cutted(this.$0);this.$2=Rcd.Air._DomHelper.$12(this.$0,'div',null);this.$3=Rcd.Air._DomHelper.$12(this.$0,'div','footer');}
Rcd.Air.Origami._ThreeFlooredPage.prototype={$0:null,$1:null,$2:null,$3:null,$4:null,get_$5:function(){var $0=this.$3.innerHTML.trim();if($0.length>0){return $0;}else{return null;}},set_$5:function($p0){if(!String.isNullOrEmpty($p0)){this.$3.innerHTML=$p0;this.$3.style.display='block';}else{this.$3.style.display='none';this.$3.innerHTML='';}return $p0;},$6:function(){this.$2.style.height='0px';Rcd.Air._DomHelper.$11(this.$1);this.set_$5(null);this.$4.$10();},$7:function($p0){var $0=$p0-this.$4.get_$B()-this.get_$8()-this.get_$9();if($0<0){if(Rcd.Air._UserAgent.get_$2()){Rcd.Air._ErrorReporter.$3('MSIE ap='+$0);$0=0;}else{throw new Error('ap='+$0);}}try{this.$2.style.height=$0+'px';}catch($1){throw new Error('Unable to set height.');}},get_$8:function(){if(this.$3.style.display==='block'){return Rcd.Air._DomHelper.$8(this.$3);}else{return 0;}},get_$9:function(){return Rcd.Air._DomHelper.$8(this.$1);},get_$A:function(){return Rcd.Air._DomHelper.$C(this.$0);},set_$A:function($p0){this.$0.style.width=($p0+'px');this.$4.set_$C($p0);return $p0;},get_$B:function(){return this.$0.offsetLeft;},set_$B:function($p0){this.$0.style.left=($p0+'px');return $p0;},get_$C:function(){return this.$0.clientTop;},set_$C:function($p0){this.$0.style.top=($p0+'px');return $p0;},get_$D:function(){return this.$4.get_$F();},get_$E:function(){return this.$0.style.zIndex;},set_$E:function($p0){this.$0.style.zIndex=$p0;return $p0;}}
Rcd.Air.Origami._PageWriter=function(targetPage,aBlocks,oCoord,iMaxHeight,iPageWidth,bForward,blocksInBook){this.$1A=-1;this.$1B=-1;this.$11=bForward;this.$12=!bForward;this.$1=blocksInBook;if(iMaxHeight<=0){throw new Error('iMaxHeight='+iMaxHeight);}if(iPageWidth<=0){throw new Error('iPageWidth='+iPageWidth);}this.$2=targetPage;this.$B=iMaxHeight;this.$C=iPageWidth;this.$18('InnerHTML');this.$15(Rcd.Air.Origami._Block.$2(aBlocks));this.$19();this.$18('RemoveSlashElements');if(Rcd.Air.Origami._PageWriter.get_$13()){Rcd.Air._DomHelper.$E(targetPage.get_$F());}this.$19();this.$18('Preprocess');this.$5(targetPage.get_$F());this.$7(targetPage.get_$F());this.$19();this.$3=targetPage.get_$F().childNodes;this.$16();var $0=this.$3.length;var $1=-1;var $2=-1;var $3=0;this.$18('FirstBlock');this.$1B=this.$1E(oCoord.$1);if(!this.get_$1C()){throw new Error('FBL is null.');}this.$19();this.$18('FirstLine');if(oCoord.$2<=0){this.$1F=-1;if(this.$11){$3=this.get_$1C().offsetTop;}else{var $9=this.get_$1C().offsetTop+this.get_$1C().offsetHeight;$3=targetPage.get_$9()-$9;}}else{var $A=Rcd.Air.Origami._LaoFinder.$2(this.get_$1C(),oCoord.$2,this.$11);this.$1F=$A.$0-oCoord.$2;if(this.$11){$3=$A.$1;}else{$3=targetPage.get_$9()-$A.$1;}}if(this.$11){$1=$3;}else{$2=$3;}this.$19();this.$18('LastBlock');var $4=(this.$11)?(iMaxHeight+$3):(targetPage.get_$9()-$3-iMaxHeight);var $5=this.$23(this.$1B,$4);if($5>=0){this.$22=false;this.$1A=$5;}else{this.$22=true;if(this.$11){this.$1A=this.$3.length-1;}else{this.$1A=0;}}if(!this.get_$1D()){throw new Error('PageWriter: LastBlockNode==null');}this.$19();var $6=this.$22;var $7=$6;while(true){var $B=false;if(this.$11){var $F=this.$4(this.$1B,this.$1A);if(($F>=0)&&($F!==this.$1A)){this.$1A=$F;$6=true;this.$22=false;$B=true;}}this.$18('LastLine');var $C=Rcd.Air.Origami._PageWriter.$0;var $D=false;var $E=false;if($6){if(this.$12&&this.$1A>0&&Rcd.Air.Origami._PageWriter.$F(this.$3[this.$1A])&&!Rcd.Air.Origami._PageWriter.$F(this.$3[this.$1A-1])){$D=true;$E=true;}else{if(this.$11){$C=this.get_$1D().offsetTop+this.get_$1D().offsetHeight;}else{$C=this.get_$1D().offsetTop;}}}else{$D=true;}if($D){if(this.get_$17()){if($4<0){throw new Error('Right there '+$4+' fwd:'+this.$11+' mh:'+iMaxHeight+' skl: '+oCoord.$2+' spx:'+$3+' canvas:'+targetPage.get_$9()+'.');}var $10=Rcd.Air.Origami._LaoFinder.$7(this.get_$1D(),$4,this.$11);var $11=0;var $12=1;var $13=2;var $14=3;var $15=$11;if(this.$1B!==this.$1A){if($10.$0-$10.$2===1){if($10.$0>=3){$15=$12;}else{$15=$14;}}}if($E){if($15===$11){if($10.$2>=$10.$0){if($10.$0>=4){$15=$13;}else{$15=$14;}}}}switch($15){default:throw new Error('The plan: '+$15+'.');case $11:this.$20=$10.$2;$C=$10.$1;break;case $12:this.$20=$10.$2-1;Rcd.Air._Utils.$2(this.$20>0,'lbls<=0');$C=Rcd.Air.Origami._LaoFinder.$2(this.get_$1D(),$10.$2-1,this.$11).$1;break;case $13:this.$20=$10.$2-2;Rcd.Air._Utils.$2(this.$20>0,'lbls<=0');$C=Rcd.Air.Origami._LaoFinder.$2(this.get_$1D(),$10.$2-2,this.$11).$1;break;case $14:$6=true;this.$1A+=(this.$11)?-1:1;continue;}this.$21=$10.$0-this.$20;this.$19();}else{this.$20=0;}}if(this.$20<=0){if(this.get_$17()&&!$6){if(this.get_$1D()===this.get_$1C()){throw new Error('lastBlockNode==firstBlockNode, linesShown<=0. | '+'idx: '+this.$1B+' '+this.$1A+', fwd: '+this.$11+' | '+this.get_$1D().tagName+' '+this.get_$1D().getAttribute('class')+' | '+this.get_$1D().innerHTML);}}if(!$6){var $16=this.get_$1D();if(this.$11){--this.$1A;if(this.$1A<0){throw new Error('lbli='+this.$1A);}$6=true;if(this.$1A>0){continue;}}else{++this.$1A;}if(!this.get_$1D()){throw new Error('Sibling is null. olbn:'+$16.nodeName+'#'+$16.getAttribute('xi')+' '+'csbl:'+this.get_$17()+', lf:'+$6+', f:'+this.$11+', hm:'+$B);}}this.$20=-1;this.$21=0;$C=(this.$11)?this.get_$1D().offsetTop+this.get_$1D().offsetHeight:this.get_$1D().offsetTop;}else if($6){this.$20=-1;this.$21=0;}if($C>=0){if(this.$11){$2=targetPage.get_$9()-$C;}else{$1=$C;}}else{if(!this.$22&&!$6){throw new Error('The second cutline not determined. Block:'+oCoord.$1+', skip:'+oCoord.$2+'.');}}this.$19();break;}this.$18('TheCut');targetPage.set_$2(Math.max(0,$1));targetPage.set_$4(Math.max(0,$2));if(!this.get_$1D()){throw new Error('PageWriter, end of constructor: LastBlockNode==null');}if($6){this.$20=-1;}if($7&&!$6){throw new Error('lastVisibleFitted changed from TRUE to FALSE.');}var $8=0;for(var $17=0;$17<targetPage.get_$F().childNodes.length;++$17){$8+=targetPage.get_$F().childNodes[$17].offsetHeight;}this.$19();}
Rcd.Air.Origami._PageWriter.$6=function($p0){return!$p0.tagName.compareTo('div',true)&&!$p0.className.compareTo('table',true);}
Rcd.Air.Origami._PageWriter.$D=function($p0){return $p0.replace(Rcd.Air.Origami._PageWriter.$E,'');}
Rcd.Air.Origami._PageWriter.$F=function($p0){return $p0.getAttribute('vfcbl')==='Y';}
Rcd.Air.Origami._PageWriter.$10=function($p0){return Rcd.Air._DomHelper.$9($p0).trim().length>0;}
Rcd.Air.Origami._PageWriter.get_$13=function(){if(!Rcd.Air.Origami._PageWriter.$14){var $0=Rcd.Air._DomHelper.$12(document.body,'div',null);$0.style.visibility='hidden';$0.innerHTML='<img></img>';if($0.getElementsByTagName('/IMG').length>0){Rcd.Air.Origami._PageWriter.$14=1;}else{Rcd.Air.Origami._PageWriter.$14=-1;}Rcd.Air._DomHelper.$10($0);}return Rcd.Air.Origami._PageWriter.$14===1;}
Rcd.Air.Origami._PageWriter.$24=function($p0){var $0=$p0.documentElement.xml;$0=Rcd.Air.Origami._HtmlDecoder.$0($0);return $0;}
Rcd.Air.Origami._PageWriter.$25=function($p0,$p1){switch($p0.nodeType){case 1:$p1.append('<'+$p0.nodeName);for(var $0=$p0.attributes.length-1;$0>=0;--$0){var $1=$p0.attributes.item($0);$p1.append(' '+$1.nodeName+'=\"'+$1.nodeValue+'\"');}$p1.append('>');for(var $2=0;$2<$p0.childNodes.length;++$2){Rcd.Air.Origami._PageWriter.$25($p0.childNodes[$2],$p1);}$p1.append('</'+$p0.nodeName+'>');break;case 3:$p1.append($p0.nodeValue);break;default:throw new Error('Unexpected node type: '+$p0.nodeType);}}
Rcd.Air.Origami._PageWriter.prototype={$1:0,$2:null,$3:null,$4:function($p0,$p1){if(!this.$11){throw new Error('FindLastThatCanBeLast !fwd');}if($p1<$p0){throw new Error('L<F');}if($p1===$p0){return $p1;}for(var $0=$p1;$0>=$p0;--$0){if(Rcd.Air.Origami._PageWriter.$F(this.$3[$0])){return $0;}}return-1;},$5:function($p0){var $0=$p0.getElementsByTagName('img');for(var $1=$0.length-1;$1>=0;--$1){var $2=$0[$1];var $3=Number.parse($2.getAttribute('xwidth'));var $4=Number.parse($2.getAttribute('xheight'));var $5,$6;if(($3<=this.get_$9())&&($4<=this.get_$A())){$5=$3;$6=$4;}else{var $7=this.get_$9()/$3;var $8=this.get_$A()/$4;var $9=Math.min($7,$8);$5=Math.floor($3*$9);$6=Math.floor($4*$9);}$2.style.width=$5+'px';$2.style.height=$6+'px';}},$7:function($p0){for(var $0=$p0.childNodes.length-1;$0>=0;--$0){var $1=$p0.childNodes[$0];if(!Rcd.Air.Origami._PageWriter.$6($1)){continue;}var $2=$1.offsetWidth;var $3=$1.offsetHeight;if($2>this.get_$9()){$1.style.width=this.get_$9()+'px';}if($3>this.get_$A()){$1.style.height=this.get_$A()+'px';}}},get_$9:function(){return this.$C-20*2;},get_$A:function(){return this.$B-20*2;},$B:0,$C:0,$11:false,$12:false,$15:function($p0){this.$2.$7=true;var $0=this.$2.get_$F().style.display;this.$2.get_$F().style.display='none';this.$2.get_$F().innerHTML=$p0;this.$2.get_$F().style.display=$0;this.$2.$8();},$16:function(){for(var $0=this.$3.length-1;$0>=0;--$0){var $1=this.$3[$0];if($1.nodeType!==1){var $2='{unavailable}';try{$2=$1.innerHTML;}catch($5){}var $3='{unavailable}';try{$3=$1.innerText;}catch($6){}var $4='{unavailable}';try{$3=$1.nodeValue;}catch($7){}throw new Error('Element '+$0+' node type is '+$1.nodeType+' (innerHtml: ['+$2+'], innerText: ['+$3+'], nodeValue: ['+$4+']).');}}},get_$17:function(){if(Rcd.Air.Origami._PageWriter.$6(this.get_$1D())){return false;}return Rcd.Air.Origami._PageWriter.$10(this.get_$1D());},$18:function($p0){},$19:function(){},get_$1C:function(){if(this.$1B<0){return null;}else{return this.$3[this.$1B];}},get_$1D:function(){if(this.$1A<0){return null;}else{return this.$3[this.$1A];}},$1E:function($p0){var $0=Rcd.Air.Origami._BlockKeeper.$1($p0);for(var $1=(this.$11)?0:this.$3.length-1;(this.$11)?($1<this.$3.length):($1>=0);$1+=((this.$11)?1:-1)){try{if(Rcd.Air.Origami._BlockKeeper.$2(this.$3[$1])===$0){return $1;}}catch($2){var $3='{unavailable}';try{$3=this.$3[$1].innerHTML;}catch($4){}throw new Error('No luck with node '+$1+' of type '+this.$3[$1]+' parent '+this.$3[$1].parentNode+'. Inner HTML: ['+$3+']');}}throw new Error('Can\'t find xi=\''+$0+'\' (first block of the fragment). Forward: '+this.$11+'.');},$1F:0,$20:0,$21:0,$22:false,$23:function($p0,$p1){for(var $0=$p0;(this.$11)?($0<this.$3.length):($0>=0);$0+=((this.$11)?1:-1)){var $1=this.$3[$0];if(this.$11){if(Rcd.Air._DomHelper.$2($1)>$p1){return $0;}}else{if($1.offsetTop<$p1){return $0;}}}return-1;}}
Rcd.Air.Origami.TextWriter=function(){}
Rcd.Air.Origami.TextWriter.prototype={aWords:null,currentWordIdx:0,get_fullyWritten:function(){return this.currentWordIdx>=this.aWords.length;},write:function(sHeightedElementID,iMaxHeight,sText){var $0=Rcd.Air._DomHelper.$1(sHeightedElementID);if(sText){this.aWords=sText.split(' ');this.currentWordIdx=0;}var $1=0;for(;this.currentWordIdx<this.aWords.length;++this.currentWordIdx){window.document.write(this.aWords[this.currentWordIdx]);if($0.clientHeight<$1){$1=$0.clientHeight;}else{break;}}if(!this.get_fullyWritten()){$0.style.height=$1+'px';}}}
Rcd.Air.Origami._View=function(){this.$0=-1;this.$1=-1;this.$2=-1;this.$3=-1;this.$4=-1;this.$7=-1;this.$8=-1;this.$9=-1;}
Rcd.Air.Origami._View.$A=function(){if(++Rcd.Air.Origami._View.$B>=2147483647){Rcd.Air.Origami._View.$B=23;}if(Rcd.Air.Origami._View.$B<0){throw new Error('rotator is negative.');}return Rcd.Air.Origami._View.$B;}
Rcd.Air.Origami._View.$11=function(){if(++Rcd.Air.Origami._View.$12>=2147483647){Rcd.Air.Origami._View.$12=555;}return Rcd.Air.Origami._View.$12;}
Rcd.Air.Origami._View.prototype={get_$5:function(){return this.$4<0;},get_$6:function(){return this.$2<0;},$C:function(){this.$7=Rcd.Air.Origami._View.$A();},$D:function($p0,$p1){this.$7=Rcd.Air.Origami._View.$A();if(!$p0||$p0.$7<0){this.$9=-1;}else{if($p0.$7<0){throw new Error('oPageBefore has no content (id='+$p0.$7+').');}$p0.$8=this.$7;this.$9=$p0.$7;}if(!$p1||$p1.$7<0){this.$8=-1;}else{if($p1.$7<0){throw new Error('oPageAfter has no content (id='+$p1.$7+').');}$p1.$9=this.$7;this.$8=$p1.$7;}},get_$E:function(){return this.$F;},$F:0,$10:function(){this.$F=Rcd.Air.Origami._View.$11();}}
Rcd.Air.Origami._DualView=function(oParent){this.$13=-1;this.$14=-1;Rcd.Air.Origami._DualView.constructBase(this);this.$1B=Rcd.Air._DomHelper.$12(oParent,'div','dualView');this.$19=new Rcd.Air.Origami._ThreeFlooredPage(this.$1B);this.$1A=new Rcd.Air.Origami._ThreeFlooredPage(this.$1B);this.$19.get_$D().className=this.$1A.get_$D().className='bookpageBody';}
Rcd.Air.Origami._DualView.prototype={get_$15:function(){return this.$14-this.$13+1;},get_$16:function(){return this.$19.get_$D().style.fontFamily;},set_$16:function($p0){this.$19.get_$D().style.fontFamily=$p0;this.$1A.get_$D().style.fontFamily=$p0;return $p0;},get_$17:function(){return this.$18;},set_$17:function($p0){this.$18=$p0;this.$19.get_$D().style.fontSize=this.$18+'em';this.$1A.get_$D().style.fontSize=this.$18+'em';return $p0;},$18:1,$19:null,$1A:null,$1B:null,get_$1C:function(){throw new Error('Not supported.');},set_$1C:function($p0){var $0=1;for(var $1=0;$1<$0;++$1){Rcd.Air._DomHelper.$B(this.$1A.$0,$p0);Rcd.Air._DomHelper.$B(this.$19.$0,$p0);}return $p0;},get_$1D:function(){return this.$1A.$0.style.zIndex;},set_$1D:function($p0){this.$1A.$0.style.zIndex=$p0;this.$19.$0.style.zIndex=$p0;return $p0;},get_$1E:function(){return true;},set_$1E:function($p0){return $p0;},get_$1F:function(){return this.$1B.style.visibility==='visible';},set_$1F:function($p0){this.$1B.style.visibility=(($p0)?'visible':'hidden');return $p0;}}
Rcd.Air.Origami._ViewsCollection=function(oParent){this.$F=-1;this.$0=[];for(var $0=0;$0<3;++$0){var $1=new Rcd.Air.Origami._DualView(oParent);this.$0.add($1);$1.set_$1D((-$0-1));$1.$10();}}
Rcd.Air.Origami._ViewsCollection.prototype={$0:null,get_$1:function(){return this.get_item(0).get_$17();},set_$1:function($p0){for(var $0=this.get_$D()-1;$0>=0;--$0){this.get_item($0).set_$17($p0);}return $p0;},get_$2:function(){return this.get_item(0).get_$16();},set_$2:function($p0){for(var $0=this.get_$D()-1;$0>=0;--$0){this.get_item($0).set_$16($p0);}return $p0;},$3:function($p0){for(var $0=this.get_$D()-1;$0>=0;--$0){this.get_item($0).set_$1F($p0);}},$4:function($p0){for(var $0=this.get_$D()-1;$0>=0;--$0){this.get_item($0).set_$1E($p0);}},$5:function($p0){var $0=this.$6($p0);if($0>=0){return this.get_item($0);}else{return null;}},$6:function($p0){if($p0<0){return-1;}for(var $0=this.get_$D()-1;$0>=0;--$0){if((this.$0[$0]).$7===$p0){return $0;}}return-1;},get_$7:function(){var $0=(this.$0[this.get_$E()]).$8;if($0>=0){return this.$6($0);}else{return-1;}},get_$8:function(){var $0=(this.$0[this.get_$E()]).$9;if($0>=0){return this.$6($0);}else{return-1;}},$9:function($p0){return $p0.$1*100000+$p0.$2;},get_$A:function(){return this.$C(false);},get_$B:function(){return this.$C(true);},$C:function($p0){var $0=this.get_item(0).get_$E();var $1=0;for(var $2=this.get_$D()-1;$2>=1;--$2){var $3=this.get_item($2).get_$E();if(($p0)?($3>$0):($3<$0)){$0=$3;$1=$2;}}return $1;},get_$D:function(){return this.$0.length;},get_$E:function(){return this.$F;},set_$E:function($p0){if($p0<0){throw new Error('CurrPageIdx: Negative value passed.');}if((this.$F<0)||(this.$F===$p0)){var $0=this.get_item($p0);$0.set_$1D(9);$0.set_$1F(true);}else{var $1=this.get_item(this.$F);var $2=this.get_item($p0);$2.set_$1F(true);$2.set_$1D(10);$1.set_$1D((-this.$F-1));$2.set_$1D(9);$1.set_$1F(false);}this.$F=$p0;return $p0;},get_item:function($p0){return this.$0[$p0];}}
Rcd.Air.Origami._ShyHack=function(oTarget,sDashCode){this.$3(oTarget,sDashCode);}
Rcd.Air.Origami._ShyHack.prototype={$0:0,$1:null,$2:function($p0){return null;},$3:function($p0,$p1){var $0=$p1.split(' ');if($0.length!==2){throw new Error('Cannot split \''+$p1+'\' into two parts by space char.');}var $1=Rcd.Air._DomHelper.$12($p0,$0[0],null);$1.innerHTML=$0[1];var $2=$p0.getElementsByTagName('u');if($2.length!==1){throw new Error('Unique \'u\' element not found.');}this.$1=$2[0].innerHTML;this.$0=$2[0].offsetWidth;var $3=Rcd.Air._DomHelper.$12(document.getElementsByTagName('head')[0],'style',null);$3.innerHTML='\r\n        <style>\r\n          u {margin-right: -'+this.$0+'px; background: #FFF;}\r\n          u.last {margin-right:0px;}\r\n        </style>';}}
Rcd.Air._EasyMouseScroll.createClass('Rcd.Air._EasyMouseScroll');Rcd.Air._Jaxx.createClass('Rcd.Air._Jaxx');Rcd.Air._ErrorReporter.createClass('Rcd.Air._ErrorReporter');Rcd.Air._EasyHash.createClass('Rcd.Air._EasyHash');Rcd.Air.Position.createClass('Rcd.Air.Position');Rcd.Air.Jake.createClass('Rcd.Air.Jake');Rcd.Air._DomHelper.createClass('Rcd.Air._DomHelper');Rcd.Air._UrlHelper.createClass('Rcd.Air._UrlHelper');Rcd.Air._UserAgent.createClass('Rcd.Air._UserAgent');Rcd.Air._Utils.createClass('Rcd.Air._Utils');Rcd.Air.Origami._BlocksPerPageAverage.createClass('Rcd.Air.Origami._BlocksPerPageAverage');Rcd.Air.Origami._BookPositions.createClass('Rcd.Air.Origami._BookPositions');Rcd.Air.Origami._Callbackin.createClass('Rcd.Air.Origami._Callbackin');Rcd.Air.Origami._Cook.createClass('Rcd.Air.Origami._Cook');Rcd.Air.Origami._ExCo.createClass('Rcd.Air.Origami._ExCo');Rcd.Air.Origami._FontDetector.createClass('Rcd.Air.Origami._FontDetector');Rcd.Air.Origami._HtmlDecoder.createClass('Rcd.Air.Origami._HtmlDecoder');Rcd.Air.Origami._Keystroke.createClass('Rcd.Air.Origami._Keystroke');Rcd.Air.Origami.Log.createClass('Rcd.Air.Origami.Log');Rcd.Air.Origami._Stopwatch.createClass('Rcd.Air.Origami._Stopwatch');Rcd.Air.Origami._Block.createClass('Rcd.Air.Origami._Block');Rcd.Air.Origami._BlockKeeper.createClass('Rcd.Air.Origami._BlockKeeper');Rcd.Air.Origami._Range.createClass('Rcd.Air.Origami._Range');Rcd.Air.Origami._Constants.createClass('Rcd.Air.Origami._Constants');Rcd.Air.Origami._Cutted.createClass('Rcd.Air.Origami._Cutted');Rcd.Air.Origami._Elements.createClass('Rcd.Air.Origami._Elements');Rcd.Air.Origami.FontDef.createClass('Rcd.Air.Origami.FontDef');Rcd.Air.Origami._FontsList.createClass('Rcd.Air.Origami._FontsList');Rcd.Air.Origami._JaxxSpecific.createClass('Rcd.Air.Origami._JaxxSpecific');Rcd.Air.Origami._LoadTask.createClass('Rcd.Air.Origami._LoadTask');Rcd.Air.Origami._EdgeCoord.createClass('Rcd.Air.Origami._EdgeCoord');Rcd.Air.Origami._LoadPageTask.createClass('Rcd.Air.Origami._LoadPageTask');Rcd.Air.Origami._LoadPageQueue.createClass('Rcd.Air.Origami._LoadPageQueue');Rcd.Air.Origami.Entrance.createClass('Rcd.Air.Origami.Entrance');Rcd.Air.Origami._Master.createClass('Rcd.Air.Origami._Master');Rcd.Air.Origami._LinesAndOffset.createClass('Rcd.Air.Origami._LinesAndOffset');Rcd.Air.Origami._LineInfo.createClass('Rcd.Air.Origami._LineInfo');Rcd.Air.Origami._LinesAndOffsetEx.createClass('Rcd.Air.Origami._LinesAndOffsetEx',Rcd.Air.Origami._LinesAndOffset);Rcd.Air.Origami._LaoFinder.createClass('Rcd.Air.Origami._LaoFinder');Rcd.Air.Origami._ThreeFlooredPage.createClass('Rcd.Air.Origami._ThreeFlooredPage');Rcd.Air.Origami._PageWriter.createClass('Rcd.Air.Origami._PageWriter');Rcd.Air.Origami.TextWriter.createClass('Rcd.Air.Origami.TextWriter');Rcd.Air.Origami._View.createClass('Rcd.Air.Origami._View');Rcd.Air.Origami._DualView.createClass('Rcd.Air.Origami._DualView',Rcd.Air.Origami._View);Rcd.Air.Origami._ViewsCollection.createClass('Rcd.Air.Origami._ViewsCollection');Rcd.Air.Origami._ShyHack.createClass('Rcd.Air.Origami._ShyHack');Rcd.Air._Jaxx.$1=0;Rcd.Air._Jaxx.$2=1;Rcd.Air._Jaxx.$3=2;Rcd.Air._Jaxx.$4=3;Rcd.Air._Jaxx.$5=4;Rcd.Air._Jaxx.$6=5;Rcd.Air._Jaxx.$7=3000;Rcd.Air._ErrorReporter.$0='Error!';Rcd.Air._ErrorReporter.$1=true;Rcd.Air._EasyHash.$1=null;Rcd.Air._DomHelper.$A=new RegExp('<[^>]*>','gm');Rcd.Air._UserAgent.$1=null;Rcd.Air._UserAgent.$6=-1;Rcd.Air._UserAgent.$8=-1;Rcd.Air._UserAgent.$A=null;Rcd.Air._UserAgent.$C=-1;Rcd.Air.Origami._BlocksPerPageAverage.$1=5;Rcd.Air.Origami._BookPositions.$2=10;Rcd.Air.Origami._FontDetector.d=null;Rcd.Air.Origami._HtmlDecoder.$1=new RegExp('(@.)|&lt;|&gt;','gm');Rcd.Air.Origami.Log.oLogWindow=null;Rcd.Air.Origami.Log.oPRE=null;Rcd.Air.Origami._Elements.$5=null;Rcd.Air.Origami._Elements.$6=null;Rcd.Air.Origami._Elements.$7=null;Rcd.Air.Origami._Elements.$8=null;Rcd.Air.Origami._Elements.$9=null;Rcd.Air.Origami._Elements.$D=null;Rcd.Air.Origami._Elements.$F=null;Rcd.Air.Origami._Elements.$11=false;Rcd.Air.Origami._FontsList.$1=false;Rcd.Air.Origami._FontsList.$3=null;Rcd.Air.Origami._JaxxSpecific.$1=0;Rcd.Air.Origami._JaxxSpecific.$2=0;Rcd.Air.Origami._JaxxSpecific.$3=1;Rcd.Air.Origami._JaxxSpecific.$4=2;Rcd.Air.Origami._JaxxSpecific.$5=3;Rcd.Air.Origami._JaxxSpecific.$6=4;Rcd.Air.Origami.Entrance.m=null;Rcd.Air.Origami._Master.$3=0;Rcd.Air.Origami._Master.$27='bookpos';Rcd.Air.Origami._Master.$2D=-12345;Rcd.Air.Origami._LaoFinder.$0='SKIP_LINE_OUTOFRANGE';Rcd.Air.Origami._LaoFinder.$4=3;Rcd.Air.Origami._PageWriter.$0=-2147483647;Rcd.Air.Origami._PageWriter.$8=20;Rcd.Air.Origami._PageWriter.$E=new RegExp('<[^>]*>','gm');Rcd.Air.Origami._PageWriter.$14=0;Rcd.Air.Origami._View.$B=22;Rcd.Air.Origami._View.$12=554;function trim(str,chars){return trimLeft(trimRight(str,chars),chars);}
function trimLeft(str,chars){chars=chars||"\\s";return str.replace(new RegExp("^["+chars+"]+","g"),"");}
function trimRight(str,chars){chars=chars||"\\s";return str.replace(new RegExp("["+chars+"]+$","g"),"");}
function errorToErport(exc)
{var sStack=null;if(exc.stack)
try{sStack=stackToErport(exc.stack);}
catch(z){}
var sResult="";sResult+=exc;sResult+="\n";sResult+=pairToErport("SYS:URI",window.location.href);sResult+=pairToErport("SYS:UserAgent",window.navigator.userAgent);sResult+=exceptionToErport(exc);if(sStack!=null)
{sResult+=DASHLINE;sResult+=sStack;}
if(sResult.length>0)
if(sResult.charAt(sResult.length-1)=='\n')
sResult=sResult.substring(0,sResult.length-1);return sResult;}
function pairToErport(left,right)
{function preformat(s)
{if(s)
return s.toString().replace(/\</g,'&lt;').replace(/\>/g,'&gt;');else
return s;}
right=right.toString();var bMultiline=(right.indexOf('\n')>=0);return"["+left.toUpperCase()+"]:"+(bMultiline?"\n":" ")+right+"\n";}
function exceptionToErport(exc)
{var sResult="";for(var field in exc)
{var fieldValue=trim(""+exc[field]);if(fieldValue.indexOf("\n")>=0)
fieldValue="\n"+fieldValue;fieldValue=fieldValue.replace("\n","\n````");if(fieldValue.charAt(0)=='\n')
fieldValue=fieldValue.substring(1,fieldValue.length-1);sResult+=pairToErport("EXC:"+field,fieldValue);}
return sResult;}
function stackToErport(stack)
{function callstack()
{function StackFrame(funcName,funcSource,flName,lnNumber){this.functionName=funcName;this.functionSource=funcSource;this.fileName=flName;this.lineNumber=lnNumber;}
StackFrame.prototype.toString=function(){return'at '+this.functionName+'('+this.fileName+':'+this.lineNumber+')';};StackFrame.prototype.toHtml=function(){return ERROR_REPORT_TABLE_OPEN+
pairToErport("STACK:FILE",this.fileName)+
pairToErport("STACK:LINE",this.lineNumber)+
pairToErport("STACK:FUNC",this.functionName)+
pairToErport("STACK:SRC",this.functionSource?this.functionSource.toString():"unavailable")+
ERROR_REPORT_TABLE_CLOSE;};var stackFrameStrings=stack.split('\n');var stackFrames=[];for(var i in stackFrameStrings){var stackFrame=stackFrameStrings[i].split('@');if(stackFrame&&stackFrame.length==2){stackFrames.push(new StackFrame(stackFrame[0],eval(stackFrame[0].replace(callstack.sansParenthesisRE,'')),stackFrame[1].match(callstack.fileNameLineNumberRE)[1],stackFrame[1].match(callstack.fileNameLineNumberRE)[2]));}}
return stackFrames;}
callstack.sansParenthesisRE=/[(][^)]*[)]/;callstack.fileNameLineNumberRE=/(.*):(\d+)$/;var sResult="";var aStackFrames=callstack();for(var i=0;i<aStackFrames.length;++i)
sResult+=aStackFrames[i].toHtml();return sResult;}
var Detector=function(){var h=document.getElementsByTagName("BODY")[0];var d=document.createElement("DIV");var s=document.createElement("SPAN");d.appendChild(s);d.style.fontFamily="sans";s.style.fontFamily="sans";s.style.fontSize="72px";s.innerHTML="mmmmmmmmmmlil";h.appendChild(d);var defaultWidth=s.offsetWidth;var defaultHeight=s.offsetHeight;h.removeChild(d);function debug(font){h.appendChild(d);var f=[];f[0]=s.style.fontFamily=font;f[1]=s.offsetWidth;f[2]=s.offsetHeight;h.removeChild(d);font=font.toLowerCase();if(font=="serif"){f[3]=true;}else{f[3]=(f[1]!=defaultWidth||f[2]!=defaultHeight);}
return f;}
function test(font){f=debug(font);return f[3];}
this.detailedTest=debug;this.test=test;}
readerPage=new Object();function origamiGoto(block)
{Rcd.Air.Origami.Entrance.GotoBlock(block);}
function origamiCompiled_SetFont(fontName)
{Rcd.Air.Origami.Entrance.SetFont(fontName);}
function origamiNative_BeforePageUpdate()
{readerPage.permalinksPopup.toggle(-1);}
readerPage.hideAllPopups=function()
{readerPage.fontsPopup.toggle(false);readerPage.permalinksPopup.toggle(-1);}
function createAjaxFrame(frameName,func)
{var dataStub='noDataStub';var frameElementHtml='<iframe id="{0}" name="{0}" src="javascript:{1}" style="width:0; height:0; display:none;"/>'.replace('{0}',frameName).replace('{1}',"'"+dataStub+"'");jQuery(frameElementHtml).appendTo("body");jQuery("iframe[name='"+frameName+"']").load(function()
{var ajaxResponseText=window.frames[frameName].document.body.innerHTML;if(ajaxResponseText==dataStub)
return;if(ajaxResponseText.charAt(0)=='<')
{var a=ajaxResponseText.indexOf('>');var b=ajaxResponseText.lastIndexOf('<');if(a>=0&&b>a)
{ajaxResponseText=ajaxResponseText.substring(a+1,b);}}
if(ajaxResponseText.indexOf('<PRE>')==0)
ajaxResponseText=ajaxResponseText.substring(5,ajaxResponseText.length-1);func(ajaxResponseText);});}
function tildeExtract(text)
{var tildeIndex=text.lastIndexOf('~');if(tildeIndex<0)
return result;var afterTilde=text.substr(tildeIndex,text.length-tildeIndex);var match=(new RegExp(/\d+/gi)).exec(afterTilde);if(match==null)
{return null;}
if(tildeIndex!=match[0])
{return null;}
text=text.substr(0,tildeIndex);return text;}
function splitAjax(text)
{var result=new Object();result.text=text;result.secondWord=null;result.rest=null;result.tildeOk=false;var newText=tildeExtract(text);if(newText==null)
return result;result.tildeOk=true;text=result.text=newText;var wordRx=new RegExp(/\S+/gi);var match=wordRx.exec(text);if(match==null)
return result;result.secondWord=match[0];result.rest=text.substr(match.index+match[0].length+1,text.length-1);return result;}