function LV8321(){Module.apply(this,arguments);this.inductorSwitchs=$("#"+this.moduleId+" .switchGroup");this.switchPos=[0,0,0,0,0,0,0,0,0];this.initTranslator("ResourceStrings8321")}var ResourceStrings8321EN={NETWORK_120V:{tooltipSwitch1:"Inductor Switch (3.2 H - 0.1 A - 1200 ohms - 60 Hz)",tooltipSwitch2:"Inductor Switch (1.6 H - 0.2 A - 600 ohms - 60 Hz)",tooltipSwitch3:"Inductor Switch (0.8 H - 0.4 A - 300 ohms - 60 Hz)",tooltipSwitch4:"Inductor Switch (3.2 H - 0.1 A - 1200 ohms - 60 Hz)",tooltipSwitch5:"Inductor Switch (1.6 H - 0.2 A - 600 ohms - 60 Hz)",tooltipSwitch6:"Inductor Switch (0.8 H - 0.4 A - 300 ohms - 60 Hz)",tooltipSwitch7:"Inductor Switch (3.2 H - 0.1 A - 1200 ohms - 60 Hz)",tooltipSwitch8:"Inductor Switch (1.6 H - 0.2 A - 600 ohms - 60 Hz)",tooltipSwitch9:"Inductor Switch (0.8 H - 0.4 A - 300 ohms - 60 Hz)",tooltipTerminal1:"Terminal (120 V - 0.7 A)",tooltipTerminal2:"Terminal (120 V - 0.7 A)",tooltipTerminal3:"Terminal (120 V - 0.7 A)",tooltipTerminal4:"Terminal (120 V - 0.7 A)",tooltipTerminal5:"Terminal (120 V - 0.7 A)",tooltipTerminal6:"Terminal (120 V - 0.7 A)"},NETWORK_220V:{tooltipSwitch1:"Inductor Switch (14.0 H - 0.05 A - 4400 ohms - 50 Hz)",tooltipSwitch2:"Inductor Switch (7.0 H - 0.1 A - 2200 ohms - 50 Hz)",tooltipSwitch3:"Inductor Switch (3.5 H - 0.2 A - 1100 ohms - 50 Hz)",tooltipSwitch4:"Inductor Switch (14.0 H - 0.05 A - 4400 ohms - 50 Hz)",tooltipSwitch5:"Inductor Switch (7.0 H - 0.1 A - 2200 ohms - 50 Hz)",tooltipSwitch6:"Inductor Switch (3.5 H - 0.2 A - 1100 ohms - 50 Hz)",tooltipSwitch7:"Inductor Switch (14.0 H - 0.05 A - 4400 ohms - 50 Hz)",tooltipSwitch8:"Inductor Switch (7.0 H - 0.1 A - 2200 ohms - 50 Hz)",tooltipSwitch9:"Inductor Switch (3.5 H - 0.2 A - 1100 ohms - 50 Hz)",tooltipTerminal1:"Terminal (220 V - 0.35 A)",tooltipTerminal2:"Terminal (220 V - 0.35 A)",tooltipTerminal3:"Terminal (220 V - 0.35 A)",tooltipTerminal4:"Terminal (220 V - 0.35 A)",tooltipTerminal5:"Terminal (220 V - 0.35 A)",tooltipTerminal6:"Terminal (220 V - 0.35 A)"},NETWORK_240V:{tooltipSwitch1:"Inductor Switch (15.3 H - 0.05 A - 4800 ohms - 50 Hz)",tooltipSwitch2:"Inductor Switch (7.6 H - 0.1 A - 2400 ohms - 50 Hz)",tooltipSwitch3:"Inductor Switch (3.8 H - 0.2 A - 1200 ohms - 50 Hz)",tooltipSwitch4:"Inductor Switch (15.3 H - 0.05 A - 4800 ohms - 50 Hz)",tooltipSwitch5:"Inductor Switch (7.6 H - 0.1 A - 2400 ohms - 50 Hz)",tooltipSwitch6:"Inductor Switch (3.8 H - 0.2 A - 1200 ohms - 50 Hz)",tooltipSwitch7:"Inductor Switch (15.3 H - 0.05 A - 4800 ohms - 50 Hz)",tooltipSwitch8:"Inductor Switch (7.6 H - 0.1 A - 2400 ohms - 50 Hz)",tooltipSwitch9:"Inductor Switch (3.8 H - 0.2 A - 1200 ohms - 50 Hz)",tooltipTerminal1:"Terminal (240 V - 0.35 A)",tooltipTerminal2:"Terminal (240 V - 0.35 A)",tooltipTerminal3:"Terminal (240 V - 0.35 A)",tooltipTerminal4:"Terminal (240 V - 0.35 A)",tooltipTerminal5:"Terminal (240 V - 0.35 A)",tooltipTerminal6:"Terminal (240 V - 0.35 A)"}},ResourceStrings8321ES={NETWORK_120V:{tooltipSwitch1:"Interruptor de inductor (3,2 H - 0,1 A - 1200 ohmios - 60 Hz)",tooltipSwitch2:"Interruptor de inductor (1,6 H - 0,2 A - 600 ohmios - 60 Hz)",tooltipSwitch3:"Interruptor de inductor (0,8 H - 0,4 A - 300 ohmios - 60 Hz)",tooltipSwitch4:"Interruptor de inductor (3,2 H - 0,1 A - 1200 ohmios - 60 Hz)",tooltipSwitch5:"Interruptor de inductor (1,6 H - 0,2 A - 600 ohmios - 60 Hz)",tooltipSwitch6:"Interruptor de inductor (0,8 H - 0,4 A - 300 ohmios - 60 Hz)",tooltipSwitch7:"Interruptor de inductor (3,2 H - 0,1 A - 1200 ohmios - 60 Hz)",tooltipSwitch8:"Interruptor de inductor (1,6 H - 0,2 A - 600 ohmios - 60 Hz)",tooltipSwitch9:"Interruptor de inductor (0,8 H - 0,4 A - 300 ohmios - 60 Hz)",tooltipTerminal1:"Terminal (120 V - 0,7 A)",tooltipTerminal2:"Terminal (120 V - 0,7 A)",tooltipTerminal3:"Terminal (120 V - 0,7 A)",tooltipTerminal4:"Terminal (120 V - 0,7 A)",tooltipTerminal5:"Terminal (120 V - 0,7 A)",tooltipTerminal6:"Terminal (120 V - 0,7 A)"},NETWORK_220V:{tooltipSwitch1:"Interruptor de inductor (14,0 H - 0,05 A - 4400 ohmios - 50 Hz)",tooltipSwitch2:"Interruptor de inductor (7,0 H - 0,1 A - 2200 ohmios - 50 Hz)",tooltipSwitch3:"Interruptor de inductor (3,5 H - 0,2 A - 1100 ohmios - 50 Hz)",tooltipSwitch4:"Interruptor de inductor (14,0 H - 0,05 A - 4400 ohmios - 50 Hz)",tooltipSwitch5:"Interruptor de inductor (7,0 H - 0,1 A - 2200 ohmios - 50 Hz)",tooltipSwitch6:"Interruptor de inductor (3,5 H - 0,2 A - 1100 ohmios - 50 Hz)",tooltipSwitch7:"Interruptor de inductor (14,0 H - 0,05 A - 4400 ohmios - 50 Hz)",tooltipSwitch8:"Interruptor de inductor (7,0 H - 0,1 A - 2200 ohmios - 50 Hz)",tooltipSwitch9:"Interruptor de inductor (3,5 H - 0,2 A - 1100 ohmios - 50 Hz)",tooltipTerminal1:"Terminal (220 V - 0,35 A)",tooltipTerminal2:"Terminal (220 V - 0,35 A)",tooltipTerminal3:"Terminal (220 V - 0,35 A)",tooltipTerminal4:"Terminal (220 V - 0,35 A)",tooltipTerminal5:"Terminal (220 V - 0,35 A)",tooltipTerminal6:"Terminal (220 V - 0,35 A)"},NETWORK_240V:{tooltipSwitch1:"Interruptor de inductor (15,3 H - 0,05 A - 4800 ohmios - 50 Hz)",tooltipSwitch2:"Interruptor de inductor (7,6 H - 0,1 A - 2400 ohmios - 50 Hz)",tooltipSwitch3:"Interruptor de inductor (3,8 H - 0,2 A - 1200 ohmios - 50 Hz)",tooltipSwitch4:"Interruptor de inductor (15,3 H - 0,05 A - 4800 ohmios - 50 Hz)",tooltipSwitch5:"Interruptor de inductor (7,6 H - 0,1 A - 2400 ohmios - 50 Hz)",tooltipSwitch6:"Interruptor de inductor (3,8 H - 0,2 A - 1200 ohmios - 50 Hz)",tooltipSwitch7:"Interruptor de inductor (15,3 H - 0,05 A - 4800 ohmios - 50 Hz)",tooltipSwitch8:"Interruptor de inductor (7,6 H - 0,1 A - 2400 ohmios - 50 Hz)",tooltipSwitch9:"Interruptor de inductor (3,8 H - 0,2 A - 1200 ohmios - 50 Hz)",tooltipTerminal1:"Terminal (240 V - 0,35 A)",tooltipTerminal2:"Terminal (240 V - 0,35 A)",tooltipTerminal3:"Terminal (240 V - 0,35 A)",tooltipTerminal4:"Terminal (240 V - 0,35 A)",tooltipTerminal5:"Terminal (240 V - 0,35 A)",tooltipTerminal6:"Terminal (240 V - 0,35 A)"}},ResourceStrings8321FR={NETWORK_120V:{tooltipSwitch1:"Interrupteur d'inductance (3,2 H - 0,1 A - 1200 ohms - 60 Hz)",tooltipSwitch2:"Interrupteur d'inductance (1,6 H - 0,2 A - 600 ohms - 60 Hz)",tooltipSwitch3:"Interrupteur d'inductance (0,8 H - 0,4 A - 300 ohms - 60 Hz)",tooltipSwitch4:"Interrupteur d'inductance (3,2 H - 0,1 A - 1200 ohms - 60 Hz)",tooltipSwitch5:"Interrupteur d'inductance (1,6 H - 0,2 A - 600 ohms - 60 Hz)",tooltipSwitch6:"Interrupteur d'inductance (0,8 H - 0,4 A - 300 ohms - 60 Hz)",tooltipSwitch7:"Interrupteur d'inductance (3,2 H - 0,1 A - 1200 ohms - 60 Hz)",tooltipSwitch8:"Interrupteur d'inductance (1,6 H - 0,2 A - 600 ohms - 60 Hz)",tooltipSwitch9:"Interrupteur d'inductance (0,8 H - 0,4 A - 300 ohms - 60 Hz)",tooltipTerminal1:"Borne (120 V - 0,7 A)",tooltipTerminal2:"Borne (120 V - 0,7 A)",tooltipTerminal3:"Borne (120 V - 0,7 A)",tooltipTerminal4:"Borne (120 V - 0,7 A)",tooltipTerminal5:"Borne (120 V - 0,7 A)",tooltipTerminal6:"Borne (120 V - 0,7 A)"},NETWORK_220V:{tooltipSwitch1:"Interrupteur d'inductance (14,0 H - 0,05 A - 4400 ohms - 50 Hz)",tooltipSwitch2:"Interrupteur d'inductance (7,0 H - 0,1 A - 2200 ohms - 50 Hz)",tooltipSwitch3:"Interrupteur d'inductance (3,5 H - 0,2 A - 1100 ohms - 50 Hz)",tooltipSwitch4:"Interrupteur d'inductance (14,0 H - 0,05 A - 4400 ohms - 50 Hz)",tooltipSwitch5:"Interrupteur d'inductance (7,0 H - 0,1 A - 2200 ohms - 50 Hz)",tooltipSwitch6:"Interrupteur d'inductance (3,5 H - 0,2 A - 1100 ohms - 50 Hz)",tooltipSwitch7:"Interrupteur d'inductance (14,0 H - 0,05 A - 4400 ohms - 50 Hz)",tooltipSwitch8:"Interrupteur d'inductance (7,0 H - 0,1 A - 2200 ohms - 50 Hz)",tooltipSwitch9:"Interrupteur d'inductance (3,5 H - 0,2 A - 1100 ohms - 50 Hz)",tooltipTerminal1:"Borne (220 V - 0,35 A)",tooltipTerminal2:"Borne (220 V - 0,35 A)",tooltipTerminal3:"Borne (220 V - 0,35 A)",tooltipTerminal4:"Borne (220 V - 0,35 A)",tooltipTerminal5:"Borne (220 V - 0,35 A)",tooltipTerminal6:"Borne (220 V - 0,35 A)"},NETWORK_240V:{tooltipSwitch1:"Interrupteur d'inductance (15,3 H - 0,05 A - 4800 ohms - 50 Hz)",tooltipSwitch2:"Interrupteur d'inductance (7,6 H - 0,1 A - 2400 ohms - 50 Hz)",tooltipSwitch3:"Interrupteur d'inductance (3,8 H - 0,2 A - 1200 ohms - 50 Hz)",tooltipSwitch4:"Interrupteur d'inductance (15,3 H - 0,05 A - 4800 ohms - 50 Hz)",tooltipSwitch5:"Interrupteur d'inductance (7,6 H - 0,1 A - 2400 ohms - 50 Hz)",tooltipSwitch6:"Interrupteur d'inductance (3,8 H - 0,2 A - 1200 ohms - 50 Hz)",tooltipSwitch7:"Interrupteur d'inductance (15,3 H - 0,05 A - 4800 ohms - 50 Hz)",tooltipSwitch8:"Interrupteur d'inductance (7,6 H - 0,1 A - 2400 ohms - 50 Hz)",tooltipSwitch9:"Interrupteur d'inductance (3,8 H - 0,2 A - 1200 ohms - 50 Hz)",tooltipTerminal1:"Borne (240 V - 0,35 A)",tooltipTerminal2:"Borne (240 V - 0,35 A)",tooltipTerminal3:"Borne (240 V - 0,35 A)",tooltipTerminal4:"Borne (240 V - 0,35 A)",tooltipTerminal5:"Borne (240 V - 0,35 A)",tooltipTerminal6:"Borne (240 V - 0,35 A)"}};LV8321.SWITCH_I1=0;LV8321.SWITCH_I2=1;LV8321.SWITCH_I3=2;LV8321.prototype=new Module;LV8321.prototype.constructor=LV8321;LV8321.prototype.type=MODULE_TYPE_8321;LV8321.prototype.inductorSwitchs;LV8321.prototype.getSettings=function(){this.settings[LV8321.SWITCH_I1]=this.getInductorSwitchValue(LV8321.SWITCH_I1*3)*4+this.getInductorSwitchValue(LV8321.SWITCH_I1*3+1)*2+this.getInductorSwitchValue(LV8321.SWITCH_I1*3+2);this.settings[LV8321.SWITCH_I2]=this.getInductorSwitchValue(LV8321.SWITCH_I2*3)*4+this.getInductorSwitchValue(LV8321.SWITCH_I2*3+1)*2+this.getInductorSwitchValue(LV8321.SWITCH_I2*3+2);this.settings[LV8321.SWITCH_I3]=this.getInductorSwitchValue(LV8321.SWITCH_I3*3)*4+this.getInductorSwitchValue(LV8321.SWITCH_I3*3+1)*2+this.getInductorSwitchValue(LV8321.SWITCH_I3*3+2)};LV8321.prototype.setSettings=function(){this.getInductorSwitchValue(LV8321.SWITCH_I1*3)*4!=(this.settings[LV8321.SWITCH_I1]&4)&&this.setInductorSwitchValue(LV8321.SWITCH_I1*3,this.settings[LV8321.SWITCH_I1]&4?1:0);this.getInductorSwitchValue(LV8321.SWITCH_I1*3+1)*2!=(this.settings[LV8321.SWITCH_I1]&2)&&this.setInductorSwitchValue(LV8321.SWITCH_I1*3+1,this.settings[LV8321.SWITCH_I1]&2?1:0);this.getInductorSwitchValue(LV8321.SWITCH_I1*3+2)!=(this.settings[LV8321.SWITCH_I1]&1)&&this.setInductorSwitchValue(LV8321.SWITCH_I1*3+2,this.settings[LV8321.SWITCH_I1]&1);this.getInductorSwitchValue(LV8321.SWITCH_I2*3)*4!=(this.settings[LV8321.SWITCH_I2]&4)&&this.setInductorSwitchValue(LV8321.SWITCH_I2*3,this.settings[LV8321.SWITCH_I2]&4?1:0);this.getInductorSwitchValue(LV8321.SWITCH_I2*3+1)*2!=(this.settings[LV8321.SWITCH_I2]&2)&&this.setInductorSwitchValue(LV8321.SWITCH_I2*3+1,this.settings[LV8321.SWITCH_I2]&2?1:0);this.getInductorSwitchValue(LV8321.SWITCH_I2*3+2)!=(this.settings[LV8321.SWITCH_I2]&1)&&this.setInductorSwitchValue(LV8321.SWITCH_I2*3+2,this.settings[LV8321.SWITCH_I2]&1);this.getInductorSwitchValue(LV8321.SWITCH_I3*3)*4!=(this.settings[LV8321.SWITCH_I3]&4)&&this.setInductorSwitchValue(LV8321.SWITCH_I3*3,this.settings[LV8321.SWITCH_I3]&4?1:0);this.getInductorSwitchValue(LV8321.SWITCH_I3*3+1)*2!=(this.settings[LV8321.SWITCH_I3]&2)&&this.setInductorSwitchValue(LV8321.SWITCH_I3*3+1,this.settings[LV8321.SWITCH_I3]&2?1:0);this.getInductorSwitchValue(LV8321.SWITCH_I3*3+2)!=(this.settings[LV8321.SWITCH_I3]&1)&&this.setInductorSwitchValue(LV8321.SWITCH_I3*3+2,this.settings[LV8321.SWITCH_I3]&1)};LV8321.prototype.updateFlag=function(){for(var n=0;n<9;n++)this.getInductorSwitchValue(n)!=this.switchPos[n]&&(this.switchPos[n]=this.getInductorSwitchValue(n),flagModif|=CALCUL_EQ_MODIFIED);this.initFlagModif()};LV8321.prototype.getInductorSwitchValue=function(n){var t=this.inductorSwitchs[n].getAttribute("switchon");return t=="true"?1:0};LV8321.prototype.setInductorSwitchValue=function(n,t){setSwitchPosition($(this.inductorSwitchs[n]),t);$(this.inductorSwitchs[n]).attr("switchon",t==1?"true":"false")};LV8321.prototype.addEvents=function(){Module.prototype.addEvents.call(this);$("#"+this.moduleId+" .switchGroup").each(function(){onButtonMouseDown($(this));onSwitchClick($(this))})};LV8321.prototype.saveSettings=function(){for(var t=[],n=0;n<9;n++)t.push(this.getInductorSwitchValue(n));return{inductorSwitchs:t}};LV8321.prototype.loadSettings=function(n){for(var t=0;t<9;t++)this.setInductorSwitchValue(t,n.inductorSwitchs[t])};