var pk;
if(!pk){pk={}
}$.extend(pk,{IE6:($.browser.msie&&$.browser.version<7),GLOBAL:{isChangedCount:false,isChangedCountry:false,base:["length","width","height","weight"],mainForm:$("#mainform"),btnCalc:$("#btn-calc"),dimensions:$("#dimensions"),inputCountryName:$('input[name="country_name"]'),inputShiptype:$("#shiptype"),selectAddCombination:$('select[name="add_combination"]')},init:function(){if(pk.IE6){$.fx.off=true
}try{pk.ie.init();
pk.countries.init();
var C=pk.formats.init(false,subformat||false);
pk.parameter.init(false,dimensions||false,subformat||false,pk.disableditems||false);
pk.browser.init(false,shiptype||false,C||false);
pk.specialcases.pkr501.init()
}catch(B){}pk.pulldown();
if(pk.IE6){$(".products .pulldown").bgiframe()
}pk.GLOBAL.selectAddCombination.find('option[value="default_none"]').remove();
$(".start ul li a").each(function(){$(this).bind("click",function(E){delay_link=$(this).attr("href");
E.preventDefault();
$("ul.pulldown").slideUp(200,function(){window.setTimeout("window.location.href = delay_link",100)
})
})
});
$("a",".promo-2").each(function(){var E=$(this);
if(E.attr("title")!=""){E.append('<div class="tooltip">'+E.attr("title")+"</div>").removeAttr("title")
}});
$("input, select, .ac_results").one("change",function(){pk.GLOBAL.btnCalc.removeClass("off")
});
$("#preloader").livequery(function(){$(this).hide();
$(".page").addClass("visible")
});
pk.GLOBAL.mainForm.livequery(function(){$(this).removeAttr("style")
});
$(".services select, .services input:text").not('[name="insert_item"],#insert_height').change(function(){if($(this).attr("name")=="add_versicherung"&&$(this).val()=="add_versichert"){insuranceRange=$(this).find(":selected").text();
insuranceVal=insuranceRange.replace(/^.*?([,.\-0-9].*)$/,"$1");
$(this).after('<input type="hidden" id="wert" name="wert" value="'+insuranceVal+'" />')
}pk.GLOBAL.dimensions.remove();
if(pk.validator.send()){pk.GLOBAL.mainForm.submit()
}});
$('select[name="insert_item"]').change(function(){if($(this).val().substr(0,4)=="bill"){$("#insert_height").val("1 mm")
}});
$("#count").change(function(){var E=$(this);
if(E.val()<=0){newCount=(current_count>0)?current_count:1;
E.val(newCount)
}else{if(E.val()!=current_count){pk.GLOBAL.isChangedCount=true
}}}).focus();
pk.GLOBAL.btnCalc.click(function(E){E.preventDefault();
if(pk.validator.countryinput()&&pk.validator.send()){pk.GLOBAL.mainForm.submit()
}});
pk.GLOBAL.mainForm.submit(function(){if(pk.GLOBAL.inputShiptype.length>0&&pk.GLOBAL.inputShiptype.val()==""){pk.GLOBAL.inputShiptype.remove()
}return true
});
$(".services :checkbox").one("click",function(){var E=$(this).attr("id");
if(E=="add_e"&&$("#add_e:checked").length>0){pk.GLOBAL.selectAddCombination.removeAttr("disabled")
}else{if($("#add_e:checked").length==0){pk.GLOBAL.selectAddCombination.attr("disabled","disabled")
}}if(pkcformula=="int.brief"&&E=="einschreiben"&&$("#einschreiben:checked",".services").length==0){$("#rueckschein:checked, #nachnahme:checked, #eigenhaendig:checked").removeAttr("checked")
}if(pkcformula=="nat.postwurfspezial"){if(E=="svc_dp"&&$("#svc_dp:checked",".services").length==0){$("#svc_etikett:checked, #svc_dicke:checked").removeAttr("checked")
}if(E=="svc_etikett"&&$("#svc_dicke:checked",".services").length>0){$("#svc_dicke:checked").removeAttr("checked")
}if(E=="svc_dicke"&&$("#svc_etikett:checked",".services").length>0){$("#svc_etikett:checked").removeAttr("checked")
}}if(pk.validator.send()){pk.GLOBAL.mainForm.submit()
}});
$(".msg").click(function(){$(this).fadeOut(300)
});
var A="",D=$("#wert");
D.focus(function(){A=D.val();
D.val("")
}).blur(function(){if(D.val()==""){D.val(A)
}})
},pulldown:function(A){if(typeof A=="undefined"||A==""){A=".pulldown"
}$(A).each(function(){var E=$(this),B=E.wrap('<div class="pulldown-wrap '+(E.attr("class")||"")+'"></div>').parent(),D=this.title?this.title:$(".selected",E).html();
this.title="";
E.hide();
B.prepend('<b class="selected clearfix">'+D+"</b>").show();
function C(){B.addClass("pulldown-open");
E.slideDown(200);
$(this).unbind("click",C)
}B.click(C).hover(function(){},function(){E.slideUp(100,function(){B.removeClass("pulldown-open")
});
$(this).bind("click",C)
})
})
},validator:{send:function(){var D=false,C=0;
for(var B=0,A=pk.GLOBAL.base.length;
B<A;
B++){var F=$("#"+pk.GLOBAL.base[B]).val();
if(typeof F!="undefined"){F=F.replace(/,/,".");
if(parseFloat(F)=="0"&&!(pk.GLOBAL.base[B]=="height"&&(shiptype=="karte"||shiptype=="rollenformat"))){C++
}}else{D=true
}}if(!D&&(C==0||(C==4&&(pk.GLOBAL.isChangedCount||pk.GLOBAL.isChangedCountry)))){return true
}else{var E=$("#directhint");
if(E.text()==""){$(".leftcol h2").after('<div class="msg msg-error" id="directhint" style="display:none"><p>Sie müssen für eine Produktberechnung eine der folgenden Aktionen ausführen:</p><ul><li>ein Format auswählen</li><li>die vier Maße angeben</li><li>Land oder Stückzahl anpassen</li></ul></div>');
$("#directhint").fadeIn().click(function(){$(this).fadeOut(400,function(){$(this).remove()
})
})
}else{E.pulse({runLength:1,speed:400,backgroundColors:["#f00","#eceae6","#f00"],duration:800})
}return false
}},countryinput:function(){if(pk.GLOBAL.inputACCountry.val()!=pk.GLOBAL.inputCountryName.val()){var B="",A="",F=pk.GLOBAL.inputACCountry.val().toLowerCase(),E=F.length;
$(".select2list li a").each(function(){var I=$(this).text().toLowerCase();
if(I.length>=E&&I.substr(0,E)==F){var H=$(this).attr("href");
paramIndex=H.indexOf("#");
A=H.substr(paramIndex+1);
B=I;
return false
}});
if(B==""){var D="";
for(var C=0,G=pk.COUNTRIES.length;
C<G;
C++){c=pk.COUNTRIES[C];
if(c.indexOf("|")>=0){D=c.substr(0,c.indexOf("|")).toLowerCase()
}if(D!=""&&D==F){F=c.substr(c.indexOf("|")+1).toLowerCase();
E=F.length;
break
}}$(".select2list li a").each(function(J){var I=$(this).text().toLowerCase();
if(I.length>=E&&I.substr(0,E)==F){var H=$(this).attr("href");
paramIndex=H.indexOf("#");
A=H.substr(paramIndex+1);
B=I;
return false
}})
}pk.GLOBAL.country.val(A).change();
pk.GLOBAL.inputCountryName.val(B);
pk.GLOBAL.isChangedCountry=true
}return true
}},ie:{init:function(){isIE=(navigator.userAgent.indexOf("MSIE")!=-1);
if(isIE){$(".format_presets :first-child").addClass("firstChild");
$(".minibrowser a:last-child, .sum li:last-child").addClass("lastChild");
$(".promo-2 a").each(function(){var D=$(this),E=D.find(".tooltip");
D.hover(function(){E.show()
},function(){E.hide()
})
});
if(pk.IE6){var C=false,A=$(".format_presets b"),B=$(".products");
$(".pulldown li").each(function(){var D=$(this);
if(D.hasClass("other")){C=true;
D.addClass("tiny")
}else{if(C){D.addClass("tiny");
if(D.hasClass("lastChild")){return false
}}}});
pk.GLOBAL.btnCalc.hover(function(){pk.GLOBAL.btnCalc.addClass("btn-calc-hover")
},function(){pk.GLOBAL.btnCalc.removeClass("btn-calc-hover")
});
B.hover(function(){B.addClass("products-hover")
},function(){B.removeClass("products-hover")
});
if(!A.hasClass("no-subformat")){A.hover(function(){A.addClass("hover")
},function(){A.removeClass("hover")
})
}}}}},countries:{init:function(){$("select#country").attr("id","countryselect");
$.extend(pk.GLOBAL,{country:$('<input id="country" name="country" type="hidden"/>').prependTo("form#mainform")});
$("select#countryselect").find("option").each(function(){if($(this).attr("selected")){$("input#country").val($(this).val())
}});
var A=optgroups=iso3=label="";
$("optgroup","select#countryselect").each(function(){var C=$(this);
optgroups+="<li><h3>"+C.attr("label")+"</h3></li>";
$(this).find("option").each(function(){var D=$(this),E=(D.attr("selected"))?' class="selected"':"";
optgroups+="<li"+E+'><a href="#'+D.val()+'">'+D.text()+"</a></li>"
})
});
A='<div class="select2list"><ul>'+optgroups+"</ul></div>";
$("select#countryselect").before(A).remove();
var B=$(".select2list");
$.extend(pk.GLOBAL,{inputACCountry:$('<input id="ac_country" name="ac_country" value="'+country_name+'" />').appendTo(".countcountry")});
$('label[for="country"]').attr("for","ac_country");
pk.GLOBAL.inputACCountry.autocomplete(pk.COUNTRIES,{formatResult:function(D){var C=D[0].indexOf("|");
if(C!="-1"){D[0]=D[0].substr(C+1)
}return D
}}).result(function(C,E,D){if(E){iso3="";
fullname="";
dataLen=String(E).length;
B.find("li a").each(function(){if($(this).text().length>=dataLen&&$(this).text().substr(0,dataLen)==E){fullname=E;
thisHref=$(this).attr("href");
paramIndex=thisHref.indexOf("#");
iso3=thisHref.substr(paramIndex+1);
return false
}});
pk.GLOBAL.country.val(iso3).change();
pk.GLOBAL.inputCountryName.val(fullname);
$("#btn-calc input").focus();
pk.GLOBAL.isChangedCountry=(fullname!=pk.GLOBAL.inputCountryName)
}});
B.find("li a").click(function(C){C.stopPropagation();
thisHref=$(this).attr("href");
paramIndex=thisHref.indexOf("#");
iso3=(thisHref.substr(paramIndex+1))?thisHref.substr(paramIndex+1):"";
pk.GLOBAL.country.val(iso3);
fullname=($(this).text())?$(this).text():"";
$('input[name="country_name"], #ac_country').val(fullname).change();
pk.GLOBAL.isChangedCountry=(fullname!=country_name);
pk.GLOBAL.inputACCountry.show();
B.removeClass("select2list_active");
return false
});
B.click(function(){var C=$(this);
C.addClass("select2list_active").focus();
pk.GLOBAL.inputACCountry.hide();
C.hover(function(){},function(){pk.GLOBAL.inputACCountry.show();
C.removeClass("select2list_active")
})
});
if(pk.IE6){B.hover(function(){t.addClass("select2list-hover")
},function(){t.removeClass("select2list-hover")
});
B.find("ul, li").hover(function(){$(this).addClass("hover")
},function(){$(this).removeClass("hover")
})
}}},formats:{VALUES:{"Format w&auml;hlen":{shiptype:""},Postkarte:{length:"23,5 cm",width:"12,5 cm",weight:"14,7 g",shiptype:"karte",section:true},Briefumschlag:{length:"23,5 cm",width:"12,5 cm",height:"5 mm",weight:"20 g",shiptype:"umschlag",section:true},"Briefumschlag DIN B6":{length:"17,6 cm",width:"12,5 cm",shiptype:"umschlag"},"Briefumschlag DIN C6":{length:"16,2 cm",width:"11,4 cm",shiptype:"umschlag"},"Briefumschlag DIN Lang":{length:"22 cm",width:"11 cm",shiptype:"umschlag"},"Briefumschlag DIN C6/5":{length:"22,9 cm",width:"11,4 cm",shiptype:"umschlag"},Versandtasche:{length:"35,3 cm",width:"25 cm",height:"2 cm",weight:"500 g",shiptype:"versandtasche",section:true},"Versandtasche DIN A5":{length:"21 cm",width:"14,8 cm",shiptype:"versandtasche"},"Versandtasche DIN C5":{length:"22,9 cm",width:"16,2 cm",shiptype:"versandtasche"},"Versandtasche DIN B5":{length:"25 cm",width:"17,6 cm",shiptype:"versandtasche"},"Versandtasche DIN A4":{length:"29,7 cm",width:"21 cm",shiptype:"versandtasche"},"Versandtasche DIN C4":{length:"32,4 cm",width:"22,9 cm",shiptype:"versandtasche"},"Versandtasche DIN B4":{length:"35,3 cm",width:"25 cm",shiptype:"versandtasche"},"Versandtasche DIN C3":{length:"45,8 cm",width:"32,4 cm",height:"11,8 cm",shiptype:"versandtasche"},"Paket/Päckchen":{length:"45 cm",width:"30 cm",height:"15 cm",weight:"2 kg",shiptype:"quaderformat",section:true},"Packset XS":{length:"22,5 cm",width:"14,5 cm",height:"3,5 cm",shiptype:"quaderformat"},"Packset S":{length:"25 cm",width:"17,5 cm",height:"10 cm",shiptype:"quaderformat"},"Packset M":{length:"37,5 cm",width:"30 cm",height:"13,5 cm",shiptype:"quaderformat"},"Packset L":{length:"45 cm",width:"35 cm",height:"20 cm",shiptype:"quaderformat"},"Packset F":{length:"38 cm",width:"12 cm",height:"12 cm",shiptype:"quaderformat"},Rolle:{length:"80 cm",width:"11 cm",weight:"2 kg",shiptype:"rollenformat",section:true},"Rolle groß":{length:"120 cm",width:"15 cm",weight:"5 kg",shiptype:"rollenformat"},Flyer:{length:"23,5 cm",width:"12,5 cm",height:"5 mm",weight:"20 g",shiptype:"flyer",section:true},Katalog:{length:"35,3 cm",width:"25 cm",height:"5 cm",weight:"1 kg",shiptype:"katalog",section:true},Presseartikel:{length:"35,3 cm",width:"25 cm",height:"5 cm",weight:"1 kg",shiptype:"presseartikel",section:true},"Berliner Format":{length:"47 cm",width:"31,5 cm",shiptype:"presseartikel"},"Rheinisches Format":{length:"51 cm",width:"35 cm",shiptype:"presseartikel"},"Nordisches Format":{length:"57 cm",width:"40 cm",shiptype:"presseartikel"},"Halbnordisches Format":{length:"40 cm",width:"28,5 cm",shiptype:"presseartikel"},"Freies Format":{length:"22 cm",width:"11 cm",height:"5 mm",weight:"20 g",shiptype:"freiesformat",section:true}},init:function(B,N){B=B||pk.formats.VALUES;
N=N||"";
var A='<div class="format_presets"><b>{{selected}}</b>{{items}}</div>',E="<li>{{value}}</li>",J='<li class="section">{{value}}</li>';
currentLabel=shownLabel="",hideSection=true,Q=0,items=[];
for(var I in B){var M=B[I].shiptype,S=(B[I].section)?J:E;
if(typeof B[I].section!="undefined"){currentLabel=I
}if(N!=""){if(I==N){var R=true,U,K,D;
for(var Q=0,O=pk.GLOBAL.base.length;
Q<O;
Q++){U=pk.GLOBAL.base[Q];
K=B[I][U];
if(typeof K!="undefined"&&K!=$("#"+U).val()){R=false
}}if(R){A=A.replace("{{selected}}",I);
shownLabel=B[I].shiptype
}else{for(var H in B){if(B[H].shiptype!=M){continue
}else{if(B[H].section){D=H
}var T=0;
for(var Q=0,O=pk.GLOBAL.base.length;
Q<O;
Q++){U=pk.GLOBAL.base[Q];
K=B[H][U];
if(typeof K!="undefined"&&K!=$("#"+U).val()){break
}else{T++
}}if(T==4){A=A.replace("{{selected}}",H);
shownLabel=B[H].shiptype;
break
}}}if(shownLabel==""){A=A.replace("{{selected}}",D)
}}}}else{if(shiptype==M){A=A.replace("{{selected}}",I);
shownLabel=B[I].shiptype
}}if(B[I].section){hideSection=true;
$(".formatbrowser a").each(function(V){if($(this).attr("class")==B[I].shiptype){hideSection=false;
return false
}})
}if((M!=shiptype&&shiptype!="freiesformat")&&(M!=shiptype&&shiptype!="")||(M==""&&shiptype=="freiesformat")||hideSection){continue
}items.push(S.replace("{{value}}",I));
Q++
}if(shownLabel==""){A=A.replace("{{selected}}",currentLabel);
shownLabel=pk.GLOBAL.inputShiptype.val()
}var G="",P=false;
if(items.length>1){itemList='<ul class="inline">'+items.join("")+"</ul>";
G=A.replace("{{items}}",itemList)
}else{G=A.replace("{{items}}","");
P=true
}$(".box").append(G);
if(P){$(".box .format_presets b").addClass("no-subformat")
}var F=$(".format_presets"),L=F.find("b"),C=F.find("ul");
F.click(function(V){C.slideDown(100)
}).hoverIntent(function(){},function(){C.slideUp(100)
});
C.find("li").each(function(){var V=$(this);
if(pk.IE6){V.hover(function(){V.addClass("hover")
},function(){V.removeClass("hover")
})
}V.click(function(d){d.stopPropagation();
$(".box .format_presets b").html(V.html());
C.slideUp(100);
var g=B[V.html()].shiptype;
if(g!=""){$("#subformat").val(V.html());
pk.GLOBAL.inputShiptype.val(g);
title=pk.browser.VALUES[g].name;
pk.GLOBAL.dimensions.val(title);
for(var b in B){if(b==V.html()){var X;
if(!V.hasClass("section")){X=V.prevAll(".section").html();
for(var Z=0,Y=pk.GLOBAL.base.length;
Z<Y;
Z++){if(typeof B[b][pk.GLOBAL.base[Z]]=="undefined"){var W=B[X][pk.GLOBAL.base[Z]];
$('input[name="'+pk.GLOBAL.base[Z]+'"]').val(W)
}}}for(var a in B[b]){if($('input[name="'+a+'"]').length>0){$('input[name="'+a+'"]').val(B[b][a])
}else{pk.GLOBAL.mainForm.prepend('<input type="hidden" name="'+a+'" value="'+B[b][a]+'" />')
}}break
}}if(pk.validator.send()){pk.GLOBAL.mainForm.submit()
}}})
});
return shownLabel
}},browser:{VALUES:{karte:"Postkarte",umschlag:"Briefumschlag",versandtasche:"Versandtasche",quaderformat:"Paket/Päckchen",rollenformat:"Rolle",freiesformat:"Freies Format",flyer:"Flyer",katalog:"Katalog",presseartikel:"Presseartikel"},init:function(A,B,C){var D=A||pk.browser.VALUES,B=B||"";
C=C||"";
$(".formatbrowser").each(function(){var F="",L=$(this),E,I=[],K='<div class="browser clearfix">{{items}}</div>',H='<a href="{{href}}" class="{{class}}" title="{{name}} auswählen">{{name}}</a>',G='<div class="format {{currentid}}"><div class="minibrowser clearfix">{{items}}</div></div>',J='<a href="{{href}}" class="{{class}}" title="{{name}} auswählen">{{name}}</a>';
if(B==""){template=K;
E=H
}else{template=G;
E=J
}L.find("a").each(function(){var M=$(this),O=M.attr("class"),P=D[O];
if(B==O){F=O
}else{currentItem=E;
currentItem=currentItem.replace(/{{class}}/g,O).replace(/{{name}}/g,P);
I.push(currentItem.replace("{{name}}",P));
var N=I.pop();
I.push(N.replace("{{href}}",M.attr("href")))
}});
template=template.replace("{{items}}",I.join(""));
template=template.replace("{{currentid}}",F);
L.html(template);
L.find("a").click(function(){var N=$(this);
currentHref=N.attr("href"),params=currentHref.substr(currentHref.indexOf("?")+1).split("&"),pairs=new Array();
pk.GLOBAL.inputShiptype.val(N.attr("class"));
$("#subformat").remove();
for(i=0,j=params.length;
i<j;
i++){var P=params[i].split("=");
pairs[P[0]]=P[1]
}var M=$("#pkcformula");
if(pairs.pkcformula){M.val(pairs.pkcformula)
}else{M.remove()
}title=D[$(this).attr("class")];
pk.GLOBAL.dimensions.val(title);
for(L in pk.formats.VALUES){if(pk.formats.VALUES[L].section&&pk.formats.VALUES[L].shiptype==$(this).attr("class")){formatobj=pk.formats.VALUES[L];
for(var O in formatobj){if(O=="length"||O=="width"||O=="height"||O=="weight"){$("form").prepend('<input type="hidden" name="'+O+'" value="'+formatobj[O]+'" />')
}}}}pk.GLOBAL.mainForm.submit();
return false
})
})
}},parameter:{VALUES:{length:["23,5 cm","35,3 cm","60 cm","90 cm","120 cm"],width:["12,5 cm","15 cm","25 cm","30 cm","35 cm","60 cm"],height:["0,5 cm","1 cm","2 cm","5 cm","15 cm","20 cm","60 cm"],weight:["20 g","50 g","500 g","1 kg","2 kg","5 kg","10 kg","20 kg","31,5 kg"]},init:function(B,C,H,A){B=B||pk.parameter.VALUES;
C=C||"";
H=H||"";
A=A||"";
var G='<div class="options"><ul class="inline">{{items}}</ul></div>',D="<li>{{value}}</li>",F='<li class="unavailable" title="Dieser Wert ist nicht mit dem ausgewählten Produkt kombinierbar">{{value}}</li>';
pk.GLOBAL.btnCalc.before('<p id="msg-parameterselection" class="msg"></p>');
var E=$("#msg-parameterselection");
$(".parameterselection").each(function(){var S=$(this),P=S.find("input"),O=P.attr("title"),Q=pk.parameter.VALUES[P.attr("id")];
P.removeAttr("title");
pulseoptions={runLength:2,speed:250,backgroundColors:["#fff","#fc0","#fff"],duration:1500};
if(typeof shiptype!="undefined"&&P.attr("id")=="height"&&(shiptype=="karte"||shiptype=="rollenformat")){pk.GLOBAL.mainForm.prepend('<input type="hidden" value="0" id="height" name="height" />');
S.remove();
return 
}P.focus(function(){E.text(O).addClass("msg-info")
}).blur(function(){E.text("").removeClass("msg-info")
});
var N=[];
if(A!=""){for(var K=0;
K<Q.length;
K++){var J=A[P.attr("id")].join(),M=J.indexOf(Q[K]);
if(M>-1&&isNaN(J.substr(M-2,1))){N.push(F.replace("{{value}}",Q[K]))
}else{N.push(D.replace("{{value}}",Q[K]))
}}}else{for(var K=0;
K<Q.length;
K++){N.push(D.replace("{{value}}",Q[K]))
}}S.append(G.replace("{{items}}",N.join("")));
var I=S.find(".options>ul");
S.find(".options").click(function(){I.slideDown(100);
P.focus();
window.getSelection().removeAllRanges()
}).hoverIntent(function(){},function(){I.slideUp(100)
});
S.find("li").click(function(T){T.stopPropagation();
P.val($(this).text()).change();
I.hide();
pk.GLOBAL.dimensions.remove()
});
if(pk.IE6){S.find("li").hover(function(){$(this).addClass("hover")
},function(){$(this).removeClass("hover")
})
}if((previous_shiptype!=""&&shiptype!=previous_shiptype)||H!=previous_subformat&&H!=""){var L=new Object();
if(window.location.search.length>1){window.location.search.replace(new RegExp("([^?=&]+)(=([^&]*))?","g"),function(U,T,W,V){L[T]=V
})
}if(window.location.search.length<=1||typeof L.width=="undefined"&&typeof L.height=="undefined"&&typeof L.length=="undefined"&&typeof L.weight=="undefined"){updatevalues=(H!="")?pk.formats.VALUES[H]:updatevalues=pk.formats.VALUES[C];
for(var R in updatevalues){switch(R){case"length":$("#"+pk.GLOBAL.base[0]).val(updatevalues[R]).pulse(pulseoptions);
break;
case"width":$("#"+pk.GLOBAL.base[1]).val(updatevalues[R]).pulse(pulseoptions);
break;
case"height":if(updatevalues[R]!="f1"&&updatevalues[R]!="f5"){$("#"+pk.GLOBAL.base[2]).parent().show();
$("#"+pk.GLOBAL.base[2]).val(updatevalues[R]).pulse(pulseoptions)
}else{if(updatevalues[R]=="f1"||updatevalues[R]=="f5"){$("#"+pk.GLOBAL.base[2]).parent().hide()
}}break;
case"weight":$("#"+pk.GLOBAL.base[3]).val(updatevalues[R]).pulse(pulseoptions);
break;
default:break
}}}}})
}},specialcases:{pkr501:{updater:function(){currentValue=$("#weight").val();
var B=currentValue.indexOf("bis ");
if(B>=0){var A=currentValue.substr(B+4);
$("#weight").val(A)
}},init:function(){if(pkcformula.search(/int\.info(brief|post)\.\w+/)!="-1"){pk.specialcases.pkr501.updater();
$("#weight").change(function(){pk.specialcases.pkr501.updater()
})
}}}}});
if($(".application-error").length<=0){$(setTimeout(pk.init,500))
}var v1;
if(!v1){v1={}
}$.extend(v1,{init:function(){$(".head .tabset").tabset();
$(".head .input-text").each(function(){var B=$(this),A=B.attr("value");
B.focus(function(){if(B.attr("value")==A){B.attr("value","")
}})
})
}});
$(setTimeout(v1.init,500));
