var DOMAssistant=function(){var X=function(){};var Y=/*@cc_on!@*/false;var Z=[];var ba={"accesskey":"accessKey","class":"className","colspan":"colSpan","for":"htmlFor","maxlength":"maxLength","readonly":"readOnly","rowspan":"rowSpan","tabindex":"tabIndex","valign":"vAlign","cellspacing":"cellSpacing","cellpadding":"cellPadding"};var bb=function(a,b){for(var j=0,jL=b.length;j<jL;j++){a.push(b[j])}return a};if(Y){bb=function(a,b){if(b.slice){return a.concat(b)}for(var i=0,iL=b.length;i<iL;i++){a[a.length]=b[i]}return a}}return{isIE:Y,camel:ba,allMethods:[],publicMethods:["cssSelect","elmsByClass","elmsByAttribute","elmsByTag"],initCore:function(){this.applyMethod.call(window,"$",this.$);this.applyMethod.call(window,"$$",this.$$);window.DOMAssistant=this;if(Y){X=Array}X.prototype=[];X.prototype.each=function(a){for(var i=0,il=this.length;i<il;i++){a.call(this[i])}return this};X.prototype.first=function(){return(typeof this[0]!=="undefined")?DOMAssistant.addMethodsToElm(this[0]):null};X.prototype.end=function(){return this.previousSet};this.attach(this)},addMethods:function(a,b){if(typeof this.allMethods[a]==="undefined"){this.allMethods[a]=b;this.addHTMLArrayPrototype(a,b)}},addMethodsToElm:function(a){for(var b in this.allMethods){if(typeof this.allMethods[b]!=="undefined"){this.applyMethod.call(a,b,this.allMethods[b])}}return a},applyMethod:function(a,b){if(typeof this[a]!=="function"){this[a]=b}},attach:function(a){var b=a.publicMethods;if(typeof b==="undefined"){for(var c in a){if(c!=="init"&&typeof a[c]!=="undefined"){this.addMethods(c,a[c])}}}else if(b.constructor===Array){for(var i=0,current;(current=b[i]);i++){this.addMethods(current,a[current])}}if(typeof a.init==="function"){a.init()}},addHTMLArrayPrototype:function(c,d){X.prototype[c]=function(){var a=new X();a.previousSet=this;var b;for(var i=0,il=this.length;i<il;i++){b=d.apply(this[i],arguments);if(typeof b!=="undefined"&&b!==null&&b.constructor===Array){a=bb(a,b)}else{a.push(b)}}return a}},$:function(){var a=new X();if(document.getElementById){var b=arguments[0];if(typeof b==="string"){b=b.replace(/^[^#]*(#)/,"$1");if(/^#[\w\u00C0-\uFFFF\-\_]+$/.test(b)){var c=DOMAssistant.$$(b.substr(1),false);if(c){a.push(c)}}else{a=DOMAssistant.cssSelection.call(document,b)}}else if((typeof b==="object")||(typeof b==="function"&&typeof b.nodeName!=="undefined")){a=(arguments.length===1)?DOMAssistant.$$(b):bb(a,arguments)}}return a},$$:function(a,b){var c=((typeof a==="object")||(typeof a==="function"&&typeof a.nodeName!=="undefined"))?a:document.getElementById(a);var d=b||true;if(typeof a==="string"&&c&&c.id!==a){c=null;for(var i=0,item;(item=document.all[i]);i++){if(item.id===a){c=item;break}}}if(c&&d){DOMAssistant.addMethodsToElm(c)}return c},cssSelection:function(R){var S=function(a){var b,add=2,max=-1,modVal=-1;var c=/^((odd|even)|([1-9]\d*)|((([1-9]\d*)?)n([\+\-]\d+)?)|(\-(([1-9]\d*)?)n\+(\d+)))$/;var d=c.exec(a);if(!d){return null}else{if(d[2]){b=(d[2]==="odd")?1:2;modVal=(b===1)?1:0}else if(d[3]){b=parseInt(d[3],10);add=0;max=b}else if(d[4]){add=d[6]?parseInt(d[6],10):1;b=d[7]?parseInt(d[7],10):0;while(b<1){b+=add}modVal=(b>add)?(b-add)%add:((b===add)?0:b)}else if(d[8]){add=d[10]?parseInt(d[10],10):1;b=max=parseInt(d[11],10);while(b>add){b-=add}modVal=(max>add)?(max-add)%add:((max===add)?0:max)}}return{start:b,add:add,max:max,modVal:modVal}};if(document.evaluate){var T={xhtml:"http://www.w3.org/1999/xhtml"};var U=(document.documentElement.namespaceURI===T.xhtml)?"xhtml:":"";var V=function lookupNamespaceURI(a){return T[a]||null};DOMAssistant.cssSelection=function(h){var l=h.replace(/\s*(,)\s*/g,"$1").split(",");var m=new X();var n,identical,cssSelectors,xPathExpression,cssSelector,splitRule,sequence;var o=/^(\w+)?(#[\w\u00C0-\uFFFF\-\_]+|(\*))?((\.[\w\u00C0-\uFFFF\-_]+)*)?((\[\w+(\^|\$|\*|\||~)?(=([\w\u00C0-\uFFFF\s\-\_\.]+|"[^"]*"|'[^']*'))?\]+)*)?(((:\w+[\w\-]*)(\((odd|even|\-?\d*n?((\+|\-)\d+)?|[\w\u00C0-\uFFFF\-_\.]+|"[^"]*"|'[^']*'|((\w*\.[\w\u00C0-\uFFFF\-_]+)*)?|(\[#?\w+(\^|\$|\*|\||~)?=?[\w\u00C0-\uFFFF\s\-\_\.]+\]+)|(:\w+[\w\-]*))\))?)*)?(>|\+|~)?/;var p=new RegExp("(?:\\[[^\\[]*\\]|\\(.*\\)|[^\\s\\+>~\\[\\(])+|[\\+>~]","g");function attrToXPath(a,b,c,d){d=d.replace(/^["'](.*)["']$/,"$1");switch(c){case"^":return"starts-with(@"+b+", \""+d+"\")";case"$":return"substring(@"+b+", (string-length(@"+b+") - "+(d.length-1)+"), "+d.length+") = \""+d+"\"";case"*":return"contains(concat(\" \", @"+b+", \" \"), \""+d+"\")";case"|":return"(@"+b+"=\""+d+"\" or starts-with(@"+b+", \""+d+"-\"))";case"~":return"contains(concat(\" \", @"+b+", \" \"), \" "+d+" \")";default:return"@"+b+(d?"=\""+d+"\"":"")}}function pseudoToXPath(a,b,c){a=(/\-child$/.test(b))?"*":a;var d="",r=b.split("-");switch(r[0]){case"first":d="not(preceding-sibling::"+a+")";break;case"last":d="not(following-sibling::"+a+")";break;case"only":d="not(preceding-sibling::"+a+" or following-sibling::"+a+")";break;case"nth":if(!/^n$/.test(c)){var e=((r[1]==="last")?"(count(following-sibling::":"(count(preceding-sibling::")+a+") + 1)";sequence=S(c);if(sequence){if(sequence.start===sequence.max){d=e+" = "+sequence.start}else{d=e+" mod "+sequence.add+" = "+sequence.modVal+((sequence.start>1)?" and "+e+" >= "+sequence.start:"")+((sequence.max>0)?" and "+e+" <= "+sequence.max:"")}}}break;case"empty":d="count(child::*) = 0 and string-length(text()) = 0";break;case"contains":d="contains(., \""+c.replace(/^["'](.*)["']$/,"$1")+"\")";break;case"enabled":d="not(@disabled)";break;case"disabled":d="@disabled";break;case"checked":d="@checked=\"checked\"";break;case"target":var f=document.location.hash.slice(1);d="@name=\""+f+"\" or @id=\""+f+"\"";break;case"not":if(/^(:\w+[\w\-]*)$/.test(c)){d="not("+pseudoToXPath(a,c.slice(1))+")"}else{c=c.replace(/^\[#([\w\u00C0-\uFFFF\-\_]+)\]$/,"[id=$1]");var g=c.replace(/^(\w+)/,"self::$1");g=g.replace(/^\.([\w\u00C0-\uFFFF\-_]+)/g,"contains(concat(\" \", @class, \" \"), \" $1 \")");g=g.replace(/\[(\w+)(\^|\$|\*|\||~)?=?([\w\u00C0-\uFFFF\s\-_\.]+)?\]/g,attrToXPath);d="not("+g+")"}break;default:d="@"+b+"=\""+c+"\"";break}return d}for(var i=0;(n=l[i]);i++){if(i>0){identical=false;for(var x=0,xl=i;x<xl;x++){if(l[i]===l[x]){identical=true;break}}if(identical){continue}}cssSelectors=n.match(p);xPathExpression=".";for(var j=0,jl=cssSelectors.length;j<jl;j++){cssSelector=o.exec(cssSelectors[j]);splitRule={tag:U+((!cssSelector[1]||cssSelector[3]==="*")?"*":cssSelector[1]),id:(cssSelector[3]!=="*")?cssSelector[2]:null,allClasses:cssSelector[4],allAttr:cssSelector[6],allPseudos:cssSelector[11],tagRelation:cssSelector[23]};if(splitRule.tagRelation){switch(splitRule.tagRelation){case">":xPathExpression+="/child::";break;case"+":xPathExpression+="/following-sibling::*[1]/self::";break;case"~":xPathExpression+="/following-sibling::";break}}else{xPathExpression+=(j>0&&/(>|\+|~)/.test(cssSelectors[j-1]))?splitRule.tag:("/descendant::"+splitRule.tag)}if(splitRule.id){xPathExpression+="[@id = \""+splitRule.id.replace(/^#/,"")+"\"]"}if(splitRule.allClasses){xPathExpression+=splitRule.allClasses.replace(/\.([\w\u00C0-\uFFFF\-_]+)/g,"[contains(concat(\" \", @class, \" \"), \" $1 \")]")}if(splitRule.allAttr){xPathExpression+=splitRule.allAttr.replace(/(\w+)(\^|\$|\*|\||~)?=?([\w\u00C0-\uFFFF\s\-_\.]+|"[^"]*"|'[^']*')?/g,attrToXPath)}if(splitRule.allPseudos){var q=/:(\w[\w\-]*)(\(([^\)]+)\))?/;splitRule.allPseudos=splitRule.allPseudos.match(/(:\w+[\w\-]*)(\([^\)]+\))?/g);for(var k=0,kl=splitRule.allPseudos.length;k<kl;k++){var r=splitRule.allPseudos[k].match(q);var s=r[1]?r[1].toLowerCase():null;var t=r[3]?r[3]:null;var u=pseudoToXPath(splitRule.tag,s,t);if(u.length){xPathExpression+="["+u+"]"}}}}var v=document.evaluate(xPathExpression,this,V,0,null),node;while((node=v.iterateNext())){m.push(node)}}return m}}else{DOMAssistant.cssSelection=function(B){var C=B.replace(/\s*(,)\s*/g,"$1").split(",");var D=new X();var E=[],matchingElms=[];var F,currentRule,identical,cssSelectors,childOrSiblingRef,nextTag,nextRegExp,regExpClassNames,matchingClassElms,regExpAttributes,matchingAttributeElms,attributeMatchRegExp,current,previous,prevParent,addElm,iteratorNext,childCount,childElm,sequence;var G=/^(>|\+|~)$/;var H=/^(\w+)?(#[\w\u00C0-\uFFFF\-\_]+|(\*))?((\.[\w\u00C0-\uFFFF\-_]+)*)?((\[\w+(\^|\$|\*|\||~)?(=([\w\u00C0-\uFFFF\s\-\_\.]+|"[^"]*"|'[^']*'))?\]+)*)?(((:\w+[\w\-]*)(\((odd|even|\-?\d*n?((\+|\-)\d+)?|[\w\u00C0-\uFFFF\-_]+|"[^"]*"|'[^']*'|((\w*\.[\w\u00C0-\uFFFF\-_]+)*)?|(\[#?\w+(\^|\$|\*|\||~)?=?[\w\u00C0-\uFFFF\s\-\_\.]+\]+)|(:\w+[\w\-]*))\))?)*)?/;var I;try{I=new RegExp("(?:\\[[^\\[]*\\]|\\(.*\\)|[^\\s\\+>~\\[\\(])+|[\\+>~]","g")}catch(e){I=/[^\s]+/g}function clearAdded(a){a=a||E;for(var n=0,nl=a.length;n<nl;n++){a[n].added=null}}function clearChildElms(){for(var n=0,nl=F.length;n<nl;n++){F[n].childElms=null}}function subtractArray(a,b){for(var i=0,src1;(src1=a[i]);i++){var c=false;for(var j=0,src2;(src2=b[j]);j++){if(src2===src1){c=true;break}}if(c){a.splice(i--,1)}}return a}function getAttr(a,b){return Y?a[ba[b.toLowerCase()]||b]:a.getAttribute(b,2)}function attrToRegExp(a,b){a=a?a.replace(/^["'](.*)["']$/,"$1").replace(/\./g,"\\."):null;switch(b){case"^":return"^"+a;case"$":return a+"$";case"*":return a;case"|":return"(^"+a+"(\\-\\w+)*$)";case"~":return"\\b"+a+"\\b";default:return a?"^"+a+"$":null}}function getElementsByTagName(a,b){a=a||"*";b=b||document;if(b===document||b.lastModified){if(!Z[a]){Z[a]=Y?((a==="*")?document.all:document.all.tags(a)):document.getElementsByTagName(a)}return Z[a]}return Y?((a==="*")?b.all:b.all.tags(a)):b.getElementsByTagName(a)}function getElementsByPseudo(c,d,e){F=[];var f=d.split("-"),matchingElms=[],checkNodeName;var g=(checkNodeName=/\-of\-type$/.test(d))?"nodeName":"nodeType";function getPrevElm(a){var b=checkNodeName?a.nodeName:1;while((a=a.previousSibling)&&a[g]!==b){}return a}function getNextElm(a){var b=checkNodeName?a.nodeName:1;while((a=a.nextSibling)&&a[g]!==b){}return a}switch(f[0]){case"first":for(var i=0;(previous=c[i]);i++){if(!getPrevElm(previous)){matchingElms[matchingElms.length]=previous}}break;case"last":for(var j=0;(previous=c[j]);j++){if(!getNextElm(previous)){matchingElms[matchingElms.length]=previous}}break;case"only":for(var k=0,kParent;(previous=c[k]);k++){prevParent=previous.parentNode;if(prevParent!==kParent){if(!getPrevElm(previous)&&!getNextElm(previous)){matchingElms[matchingElms.length]=previous}kParent=prevParent}}break;case"nth":if(/^n$/.test(e)){matchingElms=c}else{var h=(f[1]==="last")?["lastChild","previousSibling"]:["firstChild","nextSibling"];sequence=S(e);if(sequence){for(var l=0;(previous=c[l]);l++){prevParent=previous.parentNode;if(!prevParent.childElms){iteratorNext=sequence.start;childCount=0;childElm=prevParent[h[0]];while(childElm&&(sequence.max<0||iteratorNext<=sequence.max)){if(checkNodeName){if(childElm.nodeName===previous.nodeName){if(++childCount===iteratorNext){matchingElms[matchingElms.length]=childElm;iteratorNext+=sequence.add}}}else{if(childElm.nodeType===1){if(++childCount===iteratorNext){if(childElm.nodeName===previous.nodeName){matchingElms[matchingElms.length]=childElm}iteratorNext+=sequence.add}}}childElm=childElm[h[1]]}prevParent.childElms=true;F[F.length]=prevParent}}clearChildElms()}}break;case"empty":for(var m=0;(previous=c[m]);m++){if(!previous.childNodes.length){matchingElms[matchingElms.length]=previous}}break;case"enabled":for(var n=0;(previous=c[n]);n++){if(!previous.disabled){matchingElms[matchingElms.length]=previous}}break;case"disabled":for(var o=0;(previous=c[o]);o++){if(previous.disabled){matchingElms[matchingElms.length]=previous}}break;case"checked":for(var p=0;(previous=c[p]);p++){if(previous.checked){matchingElms[matchingElms.length]=previous}}break;case"contains":e=e.replace(/^["'](.*)["']$/,"$1");for(var q=0;(previous=c[q]);q++){if(!previous.added){if(previous.innerText.indexOf(e)!==-1){previous.added=true;matchingElms[matchingElms.length]=previous}}}break;case"target":var u=document.location.hash.slice(1);if(u){for(var r=0;(previous=c[r]);r++){if(getAttr(previous,"name")===u||getAttr(previous,"id")===u){matchingElms[matchingElms.length]=previous;break}}}break;case"not":if(/^(:\w+[\w\-]*)$/.test(e)){matchingElms=subtractArray(c,getElementsByPseudo(c,e.slice(1)))}else{e=e.replace(/^\[#([\w\u00C0-\uFFFF\-\_]+)\]$/,"[id=$1]");var v=/^(\w+)/.exec(e);var w=/^\.([\w\u00C0-\uFFFF\-_]+)/.exec(e);var x=/\[(\w+)(\^|\$|\*|\||~)?=?([\w\u00C0-\uFFFF\s\-_\.]+)?\]/.exec(e);var y=new RegExp("(^|\\s)"+(v?v[1]:w?w[1]:"")+"(\\s|$)","i");if(x){var z=attrToRegExp(x[3],x[2]);y=new RegExp(z,"i")}for(var s=0,notElm;(notElm=c[s]);s++){addElm=null;if(v&&!y.test(notElm.nodeName)){addElm=notElm}else if(w&&!y.test(notElm.className)){addElm=notElm}else if(x){var A=getAttr(notElm,x[1]);if(!A||!y.test(A)){addElm=notElm}}if(addElm&&!addElm.added){addElm.added=true;matchingElms[matchingElms.length]=addElm}}}break;default:for(var t=0;(previous=c[t]);t++){if(getAttr(previous,d)===e){matchingElms[matchingElms.length]=previous}}break}return matchingElms}for(var a=0;(currentRule=C[a]);a++){if(a>0){identical=false;for(var b=0,bl=a;b<bl;b++){if(C[a]===C[b]){identical=true;break}}if(identical){continue}}cssSelectors=currentRule.match(I);E=[this];for(var i=0,rule;(rule=cssSelectors[i]);i++){matchingElms=[];if(i>0&&G.test(rule)){childOrSiblingRef=G.exec(rule);if(childOrSiblingRef){nextTag=/^\w+/.exec(cssSelectors[i+1]);if(nextTag){nextTag=nextTag[0];nextRegExp=new RegExp("(^|\\s)"+nextTag+"(\\s|$)","i")}for(var j=0,prevRef;(prevRef=E[j]);j++){switch(childOrSiblingRef[0]){case">":var J=getElementsByTagName(nextTag,prevRef);for(var k=0,child;(child=J[k]);k++){if(child.parentNode===prevRef){matchingElms[matchingElms.length]=child}}break;case"+":while((prevRef=prevRef.nextSibling)&&prevRef.nodeType!==1){}if(prevRef){if(!nextTag||nextRegExp.test(prevRef.nodeName)){matchingElms[matchingElms.length]=prevRef}}break;case"~":while((prevRef=prevRef.nextSibling)&&!prevRef.added){if(!nextTag||nextRegExp.test(prevRef.nodeName)){prevRef.added=true;matchingElms[matchingElms.length]=prevRef}}break}}E=matchingElms;clearAdded();rule=cssSelectors[++i];if(/^\w+$/.test(rule)){continue}E.skipTag=true}}var K=H.exec(rule);var L={tag:(!K[1]||K[3]==="*")?"*":K[1],id:(K[3]!=="*")?K[2]:null,allClasses:K[4],allAttr:K[6],allPseudos:K[11]};if(L.id){var M=document.getElementById(L.id.replace(/#/,""));if(M){matchingElms=[M]}E=matchingElms}else if(L.tag&&!E.skipTag){if(i===0&&!matchingElms.length&&E.length===1){E=matchingElms=bb([],getElementsByTagName(L.tag,E[0]))}else{for(var l=0,ll=E.length,tagCollectionMatches,tagMatch;l<ll;l++){tagCollectionMatches=getElementsByTagName(L.tag,E[l]);for(var m=0;(tagMatch=tagCollectionMatches[m]);m++){if(!tagMatch.added){tagMatch.added=true;matchingElms[matchingElms.length]=tagMatch}}}E=matchingElms;clearAdded()}}if(!matchingElms.length){break}E.skipTag=false;if(L.allClasses){L.allClasses=L.allClasses.replace(/^\./,"").split(".");regExpClassNames=[];for(var n=0,nl=L.allClasses.length;n<nl;n++){regExpClassNames[regExpClassNames.length]=new RegExp("(^|\\s)"+L.allClasses[n]+"(\\s|$)")}matchingClassElms=[];for(var o=0,elmClass;(current=E[o]);o++){elmClass=current.className;if(elmClass&&!current.added){addElm=false;for(var p=0,pl=regExpClassNames.length;p<pl;p++){addElm=regExpClassNames[p].test(elmClass);if(!addElm){break}}if(addElm){current.added=true;matchingClassElms[matchingClassElms.length]=current}}}clearAdded();E=matchingElms=matchingClassElms}if(L.allAttr){L.allAttr=L.allAttr.match(/\[[^\]]+\]/g);regExpAttributes=[];attributeMatchRegExp=/(\w+)(\^|\$|\*|\||~)?=?([\w\u00C0-\uFFFF\s\-_\.]+|"[^"]*"|'[^']*')?/;for(var q=0,ql=L.allAttr.length,attributeMatch,attrVal;q<ql;q++){attributeMatch=attributeMatchRegExp.exec(L.allAttr[q]);attrVal=attrToRegExp(attributeMatch[3],(attributeMatch[2]||null));regExpAttributes[regExpAttributes.length]=[(attrVal?new RegExp(attrVal):null),attributeMatch[1]]}matchingAttributeElms=[];for(var r=0,currentAttr;(current=matchingElms[r]);r++){for(var s=0,sl=regExpAttributes.length,attributeRegExp;s<sl;s++){addElm=false;attributeRegExp=regExpAttributes[s][0];currentAttr=getAttr(current,regExpAttributes[s][1]);if(typeof currentAttr==="string"&&currentAttr.length){if(!attributeRegExp||typeof attributeRegExp==="undefined"||(attributeRegExp&&attributeRegExp.test(currentAttr))){addElm=true}}if(!addElm){break}}if(addElm){matchingAttributeElms[matchingAttributeElms.length]=current}}E=matchingElms=matchingAttributeElms}if(L.allPseudos){var N=/:(\w[\w\-]*)(\(([^\)]+)\))?/;L.allPseudos=L.allPseudos.match(/(:\w+[\w\-]*)(\([^\)]+\))?/g);for(var t=0,tl=L.allPseudos.length;t<tl;t++){var O=L.allPseudos[t].match(N);var P=O[1]?O[1].toLowerCase():null;var Q=O[3]?O[3]:null;matchingElms=getElementsByPseudo(matchingElms,P,Q);clearAdded(matchingElms)}E=matchingElms}}D=bb(D,E)}return D}}if(document.querySelectorAll){var W=DOMAssistant.cssSelection;DOMAssistant.cssSelection=function(a){try{var b=new X();return bb(b,this.querySelectorAll(a))}catch(e){return W.call(this,a)}}}return DOMAssistant.cssSelection.call(this,R)},cssSelect:function(a){return DOMAssistant.cssSelection.call(this,a)},elmsByClass:function(a,b){var c=(b||"")+"."+a;return DOMAssistant.cssSelection.call(this,c)},elmsByAttribute:function(a,b,c,d){var e=(c||"")+"["+a+((b&&b!=="*")?((d||"")+"="+b+"]"):"]");return DOMAssistant.cssSelection.call(this,e)},elmsByTag:function(a){return DOMAssistant.cssSelection.call(this,a)}}}();DOMAssistant.initCore();DOMAssistant.CSS=function(){return{addClass:function(a){var b=this.className;if(!new RegExp(("(^|\\s)"+a+"(\\s|$)"),"i").test(b)){this.className=b+(b.length?" ":"")+a}return this},removeClass:function(c){var d=new RegExp(("(^|\\s)"+c+"(\\s|$)"),"i");this.className=this.className.replace(d,function(a){var b="";if(new RegExp("^\\s+.*\\s+$").test(a)){b=a.replace(/(\s+).+/,"$1")}return b}).replace(/^\s+|\s+$/g,"");return this},replaceClass:function(e,f){var g=new RegExp(("(^|\\s)"+e+"(\\s|$)"),"i");this.className=this.className.replace(g,function(a,b,c){var d=b+f+c;if(new RegExp("^\\s+.*\\s+$").test(a)){d=a.replace(/(\s+).+/,"$1")}return d}).replace(/^\s+|\s+$/g,"");return this},hasClass:function(a){return new RegExp(("(^|\\s)"+a+"(\\s|$)"),"i").test(this.className)},setStyle:function(a,b){if(typeof this.style.cssText!=="undefined"){var c=this.style.cssText;if(typeof a==="object"){for(var i in a){if(typeof i==="string"){c+=";"+i+":"+a[i]}}}else{c+=";"+a+":"+b}this.style.cssText=c}return this},getStyle:function(c){var d="";if(document.defaultView&&document.defaultView.getComputedStyle){d=document.defaultView.getComputedStyle(this,"").getPropertyValue(c)}else if(this.currentStyle){d=c.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()});d=this.currentStyle[d]}return d}}}();DOMAssistant.attach(DOMAssistant.CSS);DOMAssistant.Content=function(){return{prev:function(){var a=this;while((a=a.previousSibling)&&a.nodeType!==1){}return DOMAssistant.$(a)},next:function(){var a=this;while((a=a.nextSibling)&&a.nodeType!==1){}return DOMAssistant.$(a)},create:function(a,b,c,d){var e=DOMAssistant.$(document.createElement(a));if(b){e=e.setAttributes(b)}if(typeof d!=="undefined"){e.addContent(d)}if(c){DOMAssistant.Content.addContent.call(this,e)}return e},setAttributes:function(e){if(DOMAssistant.isIE){var f=function(a,b,c){var d=b.toLowerCase();switch(d){case"name":case"type":return document.createElement(a.outerHTML.replace(new RegExp(d+"=[a-zA-Z]+")," ").replace(">"," "+d+"="+c+">"));case"style":a.style.cssText=c;return a;default:a[DOMAssistant.camel[d]||b]=c;return a}};DOMAssistant.Content.setAttributes=function(a){var b=this;var c=this.parentNode;for(var i in a){if(typeof a[i]==="string"||typeof a[i]==="number"){var d=f(b,i,a[i]);if(c&&/(name|type)/i.test(i)){if(b.innerHTML){d.innerHTML=b.innerHTML}c.replaceChild(d,b)}b=d}}return DOMAssistant.$(b)}}else{DOMAssistant.Content.setAttributes=function(a){for(var i in a){if(/class/i.test(i)){this.className=a[i]}else{this.setAttribute(i,a[i])}}return this}}return DOMAssistant.Content.setAttributes.call(this,e)},addContent:function(a){if(typeof a==="string"||typeof a==="number"){this.innerHTML+=a}else if((typeof a==="object")||(typeof a==="function"&&typeof a.nodeName!=="undefined")){this.appendChild(a)}return this},replaceContent:function(a){var b=this.all||this.getElementsByTagName("*");for(var i=0,child,attr;(child=b[i]);i++){attr=child.attributes;if(attr){for(var j=0,jl=attr.length,att;j<jl;j++){att=attr[j].nodeName.toLowerCase();if(typeof child[att]==="function"){child[att]=null}}}}while(this.hasChildNodes()){this.removeChild(this.firstChild)}DOMAssistant.$(this).addContent(a);return this},remove:function(){this.parentNode.removeChild(this);return null}}}();DOMAssistant.attach(DOMAssistant.Content);DOMAssistant.DOMLoad=function(){var b=false;var c=null;var d=[];var f={};var g=null;var h=function(){for(var i=0,il=d.length;i<il;i++){try{d[i]()}catch(e){if(g&&typeof g==="function"){g(e)}}}d=[]};var j=function(){if(b){return}b=true;h()};/*@cc_on@if(@_win32||@_win64)if(document.getElementById){document.write("<script id=\"ieScriptLoad\" defer src=\"//:\"><\/script>");document.getElementById("ieScriptLoad").onreadystatechange=function(){if(this.readyState==="complete"){j()}}}@end@*/if(document.addEventListener){document.addEventListener("DOMContentLoaded",j,false)}if(/KHTML|WebKit|iCab/i.test(navigator.userAgent)){c=setInterval(function(){if(/loaded|complete/i.test(document.readyState)){j();clearInterval(c)}},10)}window.onload=j;return{DOMReady:function(){for(var i=0,il=arguments.length,funcRef;i<il;i++){funcRef=arguments[i];if(!funcRef.DOMReady&&!f[funcRef]){if(typeof funcRef==="string"){f[funcRef]=true;funcRef=new Function(funcRef)}funcRef.DOMReady=true;d.push(funcRef)}}if(b){h()}},setErrorHandling:function(a){g=a}}}();DOMAssistant.DOMReady=DOMAssistant.DOMLoad.DOMReady;

DOMAssistant.DOMReady(function(e) {
    var start = $$('calc_start');
    if(start) {
        start.removeClass('warning');
        start.replaceContent('<a href="ind_calculator2.html"><em>Start</em></a>');
    }
});