function LV8333(){Module.apply(this,arguments);this.modulesSwitchs=$("#"+this.moduleId+" .switchGroup");this.switchPos=[0,0,0,0,0,0,0,0,0,0,0,0];this.initTranslator("ResourceStrings8333")}var ResourceStrings8333EN={NETWORK_120V:{tooltipSwitch1:"Inductor Switch (3.84 H - 0.08 A - 1200 ohms - 50 Hz)",tooltipSwitch2:"Inductor Switch (1.92 H - 0.17 A - 600 ohms - 50 Hz)",tooltipSwitch3:"Inductor Switch (0.96 H - 0.33 A - 300 ohms - 50 Hz)",tooltipSwitch4:"Inductor Switch (3.84 H - 0.08 A - 1200 ohms - 50 Hz)",tooltipSwitch5:"Inductor Switch (1.92 H - 0.17 A - 600 ohms - 50 Hz)",tooltipSwitch6:"Inductor Switch (0.96 H - 0.33 A - 300 ohms - 50 Hz)",tooltipSwitch7:"Capacitor Switch (2.65 µF - 0.08 A - 1200 ohms - 50 Hz)",tooltipSwitch8:"Capacitor Switch (5.30 µF - 0.17 A - 600 ohms - 50 Hz)",tooltipSwitch9:"Capacitor Switch (10.61 µF - 0.33 A - 300 ohms - 50 Hz)",tooltipSwitch10:"Capacitor Switch (2.65 µF - 0.08 A - 1200 ohms - 50 Hz)",tooltipSwitch11:"Capacitor Switch (5.30 µF - 0.17 A - 600 ohms - 50 Hz)",tooltipSwitch12:"Capacitor Switch (10.61 µF - 0.33 A - 300 ohms - 50 Hz)",tooltipTerminal1:"Terminal (100 V - 0.58 A)",tooltipTerminal2:"Terminal (100 V - 0.58 A)",tooltipTerminal3:"Terminal (100 V - 0.58 A)",tooltipTerminal4:"Terminal (100 V - 0.58 A)",tooltipTerminal5:"Terminal (100 V - 0.58 A)",tooltipTerminal6:"Terminal (100 V - 0.58 A)",tooltipTerminal7:"Terminal (100 V - 0.58 A)",tooltipTerminal8:"Terminal (100 V - 0.58 A)"},NETWORK_220V:{tooltipSwitch1:"Inductor Switch (3.84 H - 0.08 A - 1200 ohms - 50 Hz)",tooltipSwitch2:"Inductor Switch (1.92 H - 0.17 A - 600 ohms - 50 Hz)",tooltipSwitch3:"Inductor Switch (0.96 H - 0.33 A - 300 ohms - 50 Hz)",tooltipSwitch4:"Inductor Switch (3.84 H - 0.08 A - 1200 ohms - 50 Hz)",tooltipSwitch5:"Inductor Switch (1.92 H - 0.17 A - 600 ohms - 50 Hz)",tooltipSwitch6:"Inductor Switch (0.96 H - 0.33 A - 300 ohms - 50 Hz)",tooltipSwitch7:"Capacitor Switch (2.65 µF - 0.08 A - 1200 ohms - 50 Hz)",tooltipSwitch8:"Capacitor Switch (5.30 µF - 0.17 A - 600 ohms - 50 Hz)",tooltipSwitch9:"Capacitor Switch (10.61 µF - 0.33 A - 300 ohms - 50 Hz)",tooltipSwitch10:"Capacitor Switch (2.65 µF - 0.08 A - 1200 ohms - 50 Hz)",tooltipSwitch11:"Capacitor Switch (5.30 µF - 0.17 A - 600 ohms - 50 Hz)",tooltipSwitch12:"Capacitor Switch (10.61 µF - 0.33 A - 300 ohms - 50 Hz)",tooltipTerminal1:"Terminal (100 V - 0.58 A)",tooltipTerminal2:"Terminal (100 V - 0.58 A)",tooltipTerminal3:"Terminal (100 V - 0.58 A)",tooltipTerminal4:"Terminal (100 V - 0.58 A)",tooltipTerminal5:"Terminal (100 V - 0.58 A)",tooltipTerminal6:"Terminal (100 V - 0.58 A)",tooltipTerminal7:"Terminal (100 V - 0.58 A)",tooltipTerminal8:"Terminal (100 V - 0.58 A)"},NETWORK_240V:{tooltipSwitch1:"Inductor Switch (3,84 H - 0,08 A - 1200 ohms - 50 Hz)",tooltipSwitch2:"Inductor Switch (1,92 H - 0,17 A - 600 ohms - 50 Hz)",tooltipSwitch3:"Inductor Switch (0,96 H - 0,33 A - 300 ohms - 50 Hz)",tooltipSwitch4:"Inductor Switch (3,84 H - 0,08 A - 1200 ohms - 50 Hz)",tooltipSwitch5:"Inductor Switch (1,92 H - 0,17 A - 600 ohms - 50 Hz)",tooltipSwitch6:"Inductor Switch (0,96 H - 0,33 A - 300 ohms - 50 Hz)",tooltipSwitch7:"Capacitor Switch (2,65 µF - 0,08 A - 1200 ohms - 50 Hz)",tooltipSwitch8:"Capacitor Switch (5,30 µF - 0,17 A - 600 ohms - 50 Hz)",tooltipSwitch9:"Capacitor Switch (10,61 µF - 0,33 A - 300 ohms - 50 Hz)",tooltipSwitch10:"Capacitor Switch (2,65 µF - 0,08 A - 1200 ohms - 50 Hz)",tooltipSwitch11:"Capacitor Switch (5,30 µF - 0,17 A - 600 ohms - 50 Hz)",tooltipSwitch12:"Capacitor Switch (10,61 µF - 0,33 A - 300 ohms - 50 Hz)",tooltipTerminal1:"Terminal (100 V - 0,58 A)",tooltipTerminal2:"Terminal (100 V - 0,58 A)",tooltipTerminal3:"Terminal (100 V - 0,58 A)",tooltipTerminal4:"Terminal (100 V - 0,58 A)",tooltipTerminal5:"Terminal (100 V - 0,58 A)",tooltipTerminal6:"Terminal (100 V - 0,58 A)",tooltipTerminal7:"Terminal (100 V - 0,58 A)",tooltipTerminal8:"Terminal (100 V - 0,58 A)"}},ResourceStrings8333ES={NETWORK_120V:{tooltipSwitch1:"Interruptor de inductor (3,84 H - 0,08 A - 1200 ohmios - 50 Hz)",tooltipSwitch2:"Interruptor de inductor (1,92 H - 0,17 A - 600 ohmios - 50 Hz)",tooltipSwitch3:"Interruptor de inductor (0,96 H - 0,33 A - 300 ohmios - 50 Hz)",tooltipSwitch4:"Interruptor de inductor (3,84 H - 0,08 A - 1200 ohmios - 50 Hz)",tooltipSwitch5:"Interruptor de inductor (1,92 H - 0,17 A - 600 ohmios - 50 Hz)",tooltipSwitch6:"Interruptor de inductor (0,96 H - 0,33 A - 300 ohmios - 50 Hz)",tooltipSwitch7:"Interruptor de condensador (2,65 µF - 0,08 A - 1200 ohmios - 50 Hz)",tooltipSwitch8:"Interruptor de condensador (5,30 µF - 0,17 A - 600 ohmios - 50 Hz)",tooltipSwitch9:"Interruptor de condensador (10,61 µF - 0,33 A - 300 ohmios - 50 Hz)",tooltipSwitch10:"Interruptor de condensador (2,65 µF - 0,08 A - 1200 ohmios - 50 Hz)",tooltipSwitch11:"Interruptor de condensador (5,30 µF - 0,17 A - 600 ohmios - 50 Hz)",tooltipSwitch12:"Interruptor de condensador (10,61 µF - 0,33 A - 300 ohmios - 50 Hz)",tooltipTerminal1:"Terminal (100 V - 0,58 A)",tooltipTerminal2:"Terminal (100 V - 0,58 A)",tooltipTerminal3:"Terminal (100 V - 0,58 A)",tooltipTerminal4:"Terminal (100 V - 0,58 A)",tooltipTerminal5:"Terminal (100 V - 0,58 A)",tooltipTerminal6:"Terminal (100 V - 0,58 A)",tooltipTerminal7:"Terminal (100 V - 0,58 A)",tooltipTerminal8:"Terminal (100 V - 0,58 A)"},NETWORK_220V:{tooltipSwitch1:"Interruptor de inductor (3,84 H - 0,08 A - 1200 ohmios - 50 Hz)",tooltipSwitch2:"Interruptor de inductor (1,92 H - 0,17 A - 600 ohmios - 50 Hz)",tooltipSwitch3:"Interruptor de inductor (0,96 H - 0,33 A - 300 ohmios - 50 Hz)",tooltipSwitch4:"Interruptor de inductor (3,84 H - 0,08 A - 1200 ohmios - 50 Hz)",tooltipSwitch5:"Interruptor de inductor (1,92 H - 0,17 A - 600 ohmios - 50 Hz)",tooltipSwitch6:"Interruptor de inductor (0,96 H - 0,33 A - 300 ohmios - 50 Hz)",tooltipSwitch7:"Interruptor de condensador (2,65 µF - 0,08 A - 1200 ohmios - 50 Hz)",tooltipSwitch8:"Interruptor de condensador (5,30 µF - 0,17 A - 600 ohmios - 50 Hz)",tooltipSwitch9:"Interruptor de condensador (10,61 µF - 0,33 A - 300 ohmios - 50 Hz)",tooltipSwitch10:"Interruptor de condensador (2,65 µF - 0,08 A - 1200 ohmios - 50 Hz)",tooltipSwitch11:"Interruptor de condensador (5,30 µF - 0,17 A - 600 ohmios - 50 Hz)",tooltipSwitch12:"Interruptor de condensador (10,61 µF - 0,33 A - 300 ohmios - 50 Hz)",tooltipTerminal1:"Terminal (100 V - 0,58 A)",tooltipTerminal2:"Terminal (100 V - 0,58 A)",tooltipTerminal3:"Terminal (100 V - 0,58 A)",tooltipTerminal4:"Terminal (100 V - 0,58 A)",tooltipTerminal5:"Terminal (100 V - 0,58 A)",tooltipTerminal6:"Terminal (100 V - 0,58 A)",tooltipTerminal7:"Terminal (100 V - 0,58 A)",tooltipTerminal8:"Terminal (100 V - 0,58 A)"},NETWORK_240V:{tooltipSwitch1:"Interruptor de inductor (3,84 H - 0,08 A - 1200 ohmios - 50 Hz)",tooltipSwitch2:"Interruptor de inductor (1,92 H - 0,17 A - 600 ohmios - 50 Hz)",tooltipSwitch3:"Interruptor de inductor (0,96 H - 0,33 A - 300 ohmios - 50 Hz)",tooltipSwitch4:"Interruptor de inductor (3,84 H - 0,08 A - 1200 ohmios - 50 Hz)",tooltipSwitch5:"Interruptor de inductor (1,92 H - 0,17 A - 600 ohmios - 50 Hz)",tooltipSwitch6:"Interruptor de inductor (0,96 H - 0,33 A - 300 ohmios - 50 Hz)",tooltipSwitch7:"Interruptor de condensador (2,65 µF - 0,08 A - 1200 ohmios - 50 Hz)",tooltipSwitch8:"Interruptor de condensador (5,30 µF - 0,17 A - 600 ohmios - 50 Hz)",tooltipSwitch9:"Interruptor de condensador (10,61 µF - 0,33 A - 300 ohmios - 50 Hz)",tooltipSwitch10:"Interruptor de condensador (2,65 µF - 0,08 A - 1200 ohmios - 50 Hz)",tooltipSwitch11:"Interruptor de condensador (5,30 µF - 0,17 A - 600 ohmios - 50 Hz)",tooltipSwitch12:"Interruptor de condensador (10,61 µF - 0,33 A - 300 ohmios - 50 Hz)",tooltipTerminal1:"Terminal (100 V - 0,58 A)",tooltipTerminal2:"Terminal (100 V - 0,58 A)",tooltipTerminal3:"Terminal (100 V - 0,58 A)",tooltipTerminal4:"Terminal (100 V - 0,58 A)",tooltipTerminal5:"Terminal (100 V - 0,58 A)",tooltipTerminal6:"Terminal (100 V - 0,58 A)",tooltipTerminal7:"Terminal (100 V - 0,58 A)",tooltipTerminal8:"Terminal (100 V - 0,58 A)"}},ResourceStrings8333FR={NETWORK_120V:{tooltipSwitch1:"Interrupteur d'inductance (3,84 H - 0,08 A - 1200 ohms - 50 Hz)",tooltipSwitch2:"Interrupteur d'inductance (1,92 H - 0,17 A - 600 ohms - 50 Hz)",tooltipSwitch3:"Interrupteur d'inductance (0,96 H - 0,33 A - 300 ohms - 50 Hz)",tooltipSwitch4:"Interrupteur d'inductance (3,84 H - 0,08 A - 1200 ohms - 50 Hz)",tooltipSwitch5:"Interrupteur d'inductance (1,92 H - 0,17 A - 600 ohms - 50 Hz)",tooltipSwitch6:"Interrupteur d'inductance (0,96 H - 0,33 A - 300 ohms - 50 Hz)",tooltipSwitch7:"Interrupteur de condensateur (2,65 µF - 0,08 A - 1200 ohms - 50 Hz)",tooltipSwitch8:"Interrupteur de condensateur (5,30 µF - 0,17 A - 600 ohms - 50 Hz)",tooltipSwitch9:"Interrupteur de condensateur (10,61 µF - 0,33 A - 300 ohms - 50 Hz)",tooltipSwitch10:"Interrupteur de condensateur (2,65 µF - 0,08 A - 1200 ohms - 50 Hz)",tooltipSwitch11:"Interrupteur de condensateur (5,30 µF - 0,17 A - 600 ohms - 50 Hz)",tooltipSwitch12:"Interrupteur de condensateur (10,61 µF - 0,33 A - 300 ohms - 50 Hz)",tooltipTerminal1:"Borne (100 V - 0,58 A)",tooltipTerminal2:"Borne (100 V - 0,58 A)",tooltipTerminal3:"Borne (100 V - 0,58 A)",tooltipTerminal4:"Borne (100 V - 0,58 A)",tooltipTerminal5:"Borne (100 V - 0,58 A)",tooltipTerminal6:"Borne (100 V - 0,58 A)",tooltipTerminal7:"Borne (100 V - 0,58 A)",tooltipTerminal8:"Borne (100 V - 0,58 A)"},NETWORK_220V:{tooltipSwitch1:"Interrupteur d'inductance (3,84 H - 0,08 A - 1200 ohms - 50 Hz)",tooltipSwitch2:"Interrupteur d'inductance (1,92 H - 0,17 A - 600 ohms - 50 Hz)",tooltipSwitch3:"Interrupteur d'inductance (0,96 H - 0,33 A - 300 ohms - 50 Hz)",tooltipSwitch4:"Interrupteur d'inductance (3,84 H - 0,08 A - 1200 ohms - 50 Hz)",tooltipSwitch5:"Interrupteur d'inductance (1,92 H - 0,17 A - 600 ohms - 50 Hz)",tooltipSwitch6:"Interrupteur d'inductance (0,96 H - 0,33 A - 300 ohms - 50 Hz)",tooltipSwitch7:"Interrupteur de condensateur (2,65 µF - 0,08 A - 1200 ohms - 50 Hz)",tooltipSwitch8:"Interrupteur de condensateur (5,30 µF - 0,17 A - 600 ohms - 50 Hz)",tooltipSwitch9:"Interrupteur de condensateur (10,61 µF - 0,33 A - 300 ohms - 50 Hz)",tooltipSwitch10:"Interrupteur de condensateur (2,65 µF - 0,08 A - 1200 ohms - 50 Hz)",tooltipSwitch11:"Interrupteur de condensateur (5,30 µF - 0,17 A - 600 ohms - 50 Hz)",tooltipSwitch12:"Interrupteur de condensateur (10,61 µF - 0,33 A - 300 ohms - 50 Hz)",tooltipTerminal1:"Borne (100 V - 0,58 A)",tooltipTerminal2:"Borne (100 V - 0,58 A)",tooltipTerminal3:"Borne (100 V - 0,58 A)",tooltipTerminal4:"Borne (100 V - 0,58 A)",tooltipTerminal5:"Borne (100 V - 0,58 A)",tooltipTerminal6:"Borne (100 V - 0,58 A)",tooltipTerminal7:"Borne (100 V - 0,58 A)",tooltipTerminal8:"Borne (100 V - 0,58 A)"},NETWORK_240V:{tooltipSwitch1:"Interrupteur d'inductance (3,84 H - 0,08 A - 1200 ohms - 50 Hz)",tooltipSwitch2:"Interrupteur d'inductance (1,92 H - 0,17 A - 600 ohms - 50 Hz)",tooltipSwitch3:"Interrupteur d'inductance (0,96 H - 0,33 A - 300 ohms - 50 Hz)",tooltipSwitch4:"Interrupteur d'inductance (3,84 H - 0,08 A - 1200 ohms - 50 Hz)",tooltipSwitch5:"Interrupteur d'inductance (1,92 H - 0,17 A - 600 ohms - 50 Hz)",tooltipSwitch6:"Interrupteur d'inductance (0,96 H - 0,33 A - 300 ohms - 50 Hz)",tooltipSwitch7:"Interrupteur de condensateur (2,65 µF - 0,08 A - 1200 ohms - 50 Hz)",tooltipSwitch8:"Interrupteur de condensateur (5,30 µF - 0,17 A - 600 ohms - 50 Hz)",tooltipSwitch9:"Interrupteur de condensateur (10,61 µF - 0,33 A - 300 ohms - 50 Hz)",tooltipSwitch10:"Interrupteur de condensateur (2,65 µF - 0,08 A - 1200 ohms - 50 Hz)",tooltipSwitch11:"Interrupteur de condensateur (5,30 µF - 0,17 A - 600 ohms - 50 Hz)",tooltipSwitch12:"Interrupteur de condensateur (10,61 µF - 0,33 A - 300 ohms - 50 Hz)",tooltipTerminal1:"Borne (100 V - 0,58 A)",tooltipTerminal2:"Borne (100 V - 0,58 A)",tooltipTerminal3:"Borne (100 V - 0,58 A)",tooltipTerminal4:"Borne (100 V - 0,58 A)",tooltipTerminal5:"Borne (100 V - 0,58 A)",tooltipTerminal6:"Borne (100 V - 0,58 A)",tooltipTerminal7:"Borne (100 V - 0,58 A)",tooltipTerminal8:"Borne (100 V - 0,58 A)"}};LV8333.SWITCH_I1=0;LV8333.SWITCH_I2=1;LV8333.SWITCH_C1=2;LV8333.SWITCH_C2=3;LV8333.prototype=new Module;LV8333.prototype.constructor=LV8333;LV8333.prototype.type=MODULE_TYPE_8333;LV8333.prototype.getSettings=function(){this.settings[LV8333.SWITCH_I1]=this.getBlockSwitchValue(LV8333.SWITCH_I1);this.settings[LV8333.SWITCH_I2]=this.getBlockSwitchValue(LV8333.SWITCH_I2);this.settings[LV8333.SWITCH_C1]=this.getBlockSwitchValue(LV8333.SWITCH_C1);this.settings[LV8333.SWITCH_C2]=this.getBlockSwitchValue(LV8333.SWITCH_C2)};LV8333.prototype.setSettings=function(){this.getBlockSwitchValue(LV8333.SWITCH_I1)!==this.settings[LV8333.SWITCH_I1]&&this.setBlockSwitchValue(LV8333.SWITCH_I1,this.setSettings[LV8333.SWITCH_I1]);this.getBlockSwitchValue(LV8333.SWITCH_I2)!==this.settings[LV8333.SWITCH_I2]&&this.setBlockSwitchValue(LV8333.SWITCH_I2,this.setSettings[LV8333.SWITCH_I2]);this.getBlockSwitchValue(LV8333.SWITCH_C1)!==this.settings[LV8333.SWITCH_C1]&&this.setBlockSwitchValue(LV8333.SWITCH_C1,this.setSettings[LV8333.SWITCH_C1]);this.getBlockSwitchValue(LV8333.SWITCH_C2)!==this.settings[LV8333.SWITCH_C2]&&this.setBlockSwitchValue(LV8333.SWITCH_C2,this.setSettings[LV8333.SWITCH_C2])};LV8333.prototype.updateFlag=function(){for(var n=0;n<12;n++)this.getModuleSwitchValue(n)!=this.switchPos[n]&&(this.switchPos[n]=this.getModuleSwitchValue(n),flagModif|=CALCUL_EQ_MODIFIED);this.initFlagModif()};LV8333.prototype.getModuleSwitchValue=function(n){var t=this.modulesSwitchs[n].getAttribute("switchon");return t=="true"?1:0};LV8333.prototype.getBlockSwitchValue=function(n){if(n<0||n>LV8333.SWITCH_C2)throw"Invalid index";return(this.getModuleSwitchValue(n*3)<<2)+(this.getModuleSwitchValue(n*3+1)<<1)+this.getModuleSwitchValue(n*3+2)};LV8333.prototype.setModuleSwitchValue=function(n,t){setSwitchPosition($(this.modulesSwitchs[n]),t);$(this.modulesSwitchs[n]).attr("switchon",t==1?"true":"false")};LV8333.prototype.setBlockSwitchValue=function(n,t){this.setModuleSwitchValue(n*3,(t&4)>>2);this.setModuleSwitchValue(n*3+1,(t&2)>>1);this.setModuleSwitchValue(n*3+2,t&1)};LV8333.prototype.addEvents=function(){Module.prototype.addEvents.call(this);$("#"+this.moduleId+" .switchGroup").each(function(){onButtonMouseDown($(this));onSwitchClick($(this))})};LV8333.prototype.saveSettings=function(){for(var t=[],n=0;n<12;n++)t.push(this.getModuleSwitchValue(n));return{moduleSwitchs:t}};LV8333.prototype.loadSettings=function(n){for(var t=0;t<12;t++)this.setModuleSwitchValue(t,n.moduleSwitchs[t])};