if(typeof EASYPROF.variables=="undefined"){EASYPROF.variables={};(function(){EASYPROF.variables.Variable=function(c,b){this.id=c||"";if(b==null){b=c}this.onChangeEvent=new YAHOO.util.CustomEvent("onChange",this)};var a=EASYPROF.variables.Variable.prototype;a.doChangeAction=function(c,b,d){this.onChange()};a.onChange=function(){this.onChangeEvent.fire()};a.getOnChangeEvent=function(){return this.onChangeEvent};a.toString=function(){};a.defaultValueToString=function(){};a.setValue=function(b){};a.getValue=function(){return null};a.setValueFromString=function(b){};a.pageLoad=function(){};a.pageUnload=function(){this.onChangeEvent.unsubscribeAll()}})();(function(){EASYPROF.variables.VariableNumeric=function(d,c,b){if(b==null){b=c;c=d}EASYPROF.variables.VariableNumeric.superclass.constructor.call(this,d,c);this.defaultValue=b;this.value=b;this.conditionalVariableEvents=new Array();this.conditionalValueEvents=new Array()};YAHOO.extend(EASYPROF.variables.VariableNumeric,EASYPROF.variables.Variable);var a=EASYPROF.variables.VariableNumeric.prototype;a.operationAction=function(f,e,h){var c=h[0];var d=h[1];if(c){var g=h[2].getValue()}else{var g=h[2]}var b;switch(d){case 5:b=this.value.pow(g);break;case 4:b=this.value.mod(g);break;case 3:b=this.value.divide(g);break;case 2:b=this.value.multiply(g);break;case 1:b=this.value.subtract(g);break;default:b=this.value.add(g);break}this.setValue(this.round(b,h[3]))};a.setValueAction=function(d,c,f){var b=f[0];if(b){var e=f[1].getValue()}else{var e=f[1]}this.setValue(e)};a.operationActionEx=function(d,c,e){if(e.length>=3){var f=EASYPROF.util.InfixToPostfix(e[0]);var b=EASYPROF.util.PostfixEval(f,e[1]);this.setValue(this.round(b,e[2]))}};a.round=function(c,b){var e=Math.pow(10,b);return new EASYPROF.util.BigNumber(Math.round(parseFloat(c)*e)/e)};a.setRandomValueAction=function(d,c,h){var f=h[0];var g=h[1];var b=h[2];if(b==undefined||b==null||b.compare(0)==0){b=new EASYPROF.util.BigNumber(1)}if(g==undefined||g==null||g.compare(0)==0){g=new EASYPROF.util.BigNumber(f);f=new EASYPROF.util.BigNumber(0)}var e=new EASYPROF.util.BigNumber(g.subtract(f).divide(b).multiply(Math.random()),EASYPROF.util.BigNumber.defaultPrecision,EASYPROF.util.BigNumber.ROUND_FLOOR);this.setValue(e.intPart().multiply(b).add(f))};a.doChangeAction=function(c,b,d){this.onChange();this.conditional(this.value,1)};a.resetValueAction=function(c,b,d){this.setValue(this.defaultValue)};a.conditional=function(c,d){for(var b=0;b