Insgesamt Tarifkombinationen geprüft.'}),new b("div.products-tax",{html:'Alle Beiträge in Euro inkl. '+this.calculator.formatValue("tax",null,{unit:"%"})+" VSt."}),a)}})}(window); Calculator.implement({toggleZusatzrasse:function(a){var b=a.get("name").charAt(a.get("name").lastIndexOf("]")-1),c=$$(".zusatzrasse"+b)[0];a.get("value")>0?c.removeClass("hidden"):c.addClass("hidden"),a.getForm().validate()},toggleRasseninputs:function(a){var b,c,d=$$("input[name=Vertrag_anzahl_form]")[0].value,e=$("hunderassen"),f=e.getForm(),g=e.getElements(".versichertehunde"),h=g.length,i=new Element("div"),j=function(a,b,c){return a.get(b)&&a.set(b,a.get(b).replace("##",c)),j},k=e.getElement(".versichertehunde-template"),l=function(a){b.getElements("input").each(function(b){j(b,"name",a)(b,"id",a),"radio"==b.get("Type")&&"0"==b.value&&(b.checked=!0),f.addField(b)})},m=function(a){b.getElements("label[for]").each(function(b){j(b,"id",a)(b,"for",a)(b,"html",a+1)})},n=$("hunde-caption");if(d>50&&(d=50),d>1?n.innerHTML="Angabe zu den versicherten Hunden":n.innerHTML="Angabe zum versicherten Hund",d>h)for(g.destroy(),rplHash=function(a){a.set("class",a.get("class").replace("##",c))},c=0;d>c;c++)b=k.cloneNode(!0),b.removeClass("versichertehunde-template").removeClass("form").removeClass("form-pseudo").removeClass("hidden").addClass("versichertehunde"),b.getElement(".sub-caption").removeClass("hidden").set("html",b.getElement(".form-caption").get("html").replace("##",c+1)),i.inject(e),b.inject(i),l(c),m(c),b.getElements("div").forEach(rplHash),document.Initializer.run(i);else{for(c=h;c>d;c--)g[c-1].getElements(".sub-caption").addClass("hidden"),g[c-1].destroy();"1"===d&&g[0].getElements(".sub-caption").addClass("hidden")}}});