var bits=document.domain.split(".");var l=bits.length;document.domain=bits[(l-2)]+"."+bits[(l-1)];var qsParm=[];function qs(){var D=window.location.search.substring(1);var C=D.split("&");for(var B=0;B0){var A=C[B].substring(0,F);var E=C[B].substring(F+1);qsParm[A]=E}}}if(top!=self&&top.location.hostname!=self.location.hostname){qs();if(typeof (qsParm.checkitout)=="undefined"){top.location.replace(self.location.href)}else{var href="/checkitout.php?checkitout="+qsParm.checkitout;$.get(href,function(A){if(A!=1){top.location.replace(self.location.href)}})}}function toggleBox(A,C){var B=document.layers?document.layers[A]:document.getElementById?document.getElementById(A).style:document.all[A].style;if(B.visibility=="visible"){B.visibility="hidden"}else{if(B.visibility=="show"){B.visibility="hide"}else{B.visibility=document.layers?(C?"show":"hide"):(C?"visible":"hidden")}}}function loadWarenkorb(){var A=String(window.location);if(!(A.indexOf("warenkorb2010")!=-1&&A.indexOf("index")!=-1)){$("#minikorb").load("/warenkorb/warenkorb_ajax.php")}}function viewport(){var B=window.innerHeight;if(!B){B=$(window).height()}var A=window.innerWidth;if(!A){A=$(window).width()}return{x:$(window).scrollLeft(),y:$(window).scrollTop(),cx:$(window).width(),cy:$(window).height_opera95_fixed(),sy:B,sx:A}}jQuery.fn.height_opera95_fixed=function(){if(this[0]==window&&jQuery.browser.opera&&jQuery.browser.version>=9.5){return window.innerHeight}else{return $(this[0]).height()}};$(document).ready(function(){$(".jseinblenden").show();$(".jsausblenden").hide();var C="https://hilfe.westfalia.eu/";var A="http://hilfe.westfalia.de/";$(".hilfelink").each(function(){var L=$(this);L.addClass("thickbox");L.attr("target","_blank");var I=L.attr("href").split("#");var J="";var M="?";if(I[0].indexOf("?")>=0){M="&"}var H=I[0].indexOf("static");var K="";if(H>=0){K=I[0].substring(H)}else{var G=I[0].replace(/http(s)?:\/\//,"");var E=G.indexOf("/");K=G.substring(E)}if(K.length==0){K=I[0]}var D="";if(document.location.protocol=="http:"){D=A+K}else{D=C+K}if(typeof (I[1])!="undefined"&&I[1].length>0){J="&springto="+I[1]}var F=D+M+J+"&KeepThis=true&TB_iframe=true&height=450&width=580";L.attr("href",F)});$(".weitershoppen").click(function(){$.unblockUI();return false});$(".multikauf").click(function(){var E=$(this).attr("rel");var D=$(this).parents(".buyartikel").find("input[rel="+E+"]");if(D.val()==0){D.val(1)}});$(".buyartikel").submit(function(G){G.preventDefault();$.blockUI.defaults.css.width="427px";$.blockUI.defaults.css.cursor="default";$.blockUI.defaults.overlayCSS.cursor="default";$.blockUI({message:$("#waitimg")});var F={};var I="";var H="";var E=false;$(this).find("[name^=ANZAHL]").each(function(){I=$(this).attr("name");H=$(this).val();if(H!=""){E=true}F[I]=H});F.version="westfalia";F.ajax=1;if(E==false){$.blockUI({message:$("#nomenge")});return }qs();var D="";if(typeof (qsParm.vbSESSID)!="undefined"){D="?vbSESSID="+qsParm.vbSESSID}$.post("/warenkorb/kauf.php"+D,F,function(J){if(J==1){$.blockUI({message:$("#bought")});loadWarenkorb()}else{if(J=="nocookie"){$("#fehler").hide();$("#nocookie").show();$.blockUI({message:$("#notbought")})}else{$("#fehler").show();$("#nocookie").hide();$.blockUI({message:$("#notbought")})}}$(".blockOverlay").click(function(){$.unblockUI()})})});$(".more").click(function(){var D=$(this).attr("rel");obj=document.getElementById(D);$(this).parent("span").hide();$(obj).show();return false});$(".less").click(function(){var D=$(this).attr("rel");$(this).parent("span").hide();obj=document.getElementById(D);$(obj).show();return false});if($("#miniwarenkorb").length>0){$("#miniwarenkorb").show();loadWarenkorb()}var B="Artikelname / Artikelnummer / Schlagwort / ....";$("#suchbegriff_fact_finder").val(B);$("#suchbegriff_fact_finder").focus(function(){if($(this).val()==B){$(this).val("")}});$("#suchbegriff_fact_finder").blur(function(){if($(this).val()==""){$(this).val(B)}});$("#brandselect").show();$(".dynamicselect").change(function(){document.location.href=$(this).val()});if(jQuery.support.opacity===false){$("img").each(function(){var E=$(this).attr("src");var D=E.split(".");if(D[D.length-1]=="png"){$(this).css("behavior",'url("/global/medien/skripte/iepngfix.htc")')}})}$(".sliderPortfolio").innerfade({speed:"slow",timeout:6000,type:"sequence",containerheight:"160px"});$(".flyoutlink").click(function(){var E=$(this).attr("rel");var D=$(this).parents(".sidebarmenu").offset();$(".flyoutmenu").hide();$("#"+E).clone(true).prependTo("body").css({top:D.top,left:D.left}).fadeIn("fast").animate({left:D.left+184});return false});$(".flyoutclose").click(function(){var D=$(this).offset();$(this).parents(".flyoutmenu").animate({left:D.left-182}).fadeOut("fast");return false});$(".cbtoggle").click(function(){if($(this).attr("checked")){$("#"+$(this).attr("rel")).show()}else{$("#"+$(this).attr("rel")).hide()}})});(function(A){A.fn.innerfade=function(B){this.each(function(){var D={animationtype:"fade",speed:"normal",timeout:2000,type:"sequence",containerheight:"auto",runningclass:"innerfade"};if(B){A.extend(D,B)}var E=A(this).children();if(E.length>1){A(this).css("position","relative");A(this).css("height",D.containerheight);A(this).addClass(D.runningclass);for(var C=0;C');D=E('

');G=E('
').append(H).prepend(D);I=E("
").attr({id:"cluetip"}).css({zIndex:L.cluezIndex}).append(G).append('
')[B](A).hide();E('
').css({position:"absolute",zIndex:r-1}).insertBefore("#cluetip").hide();I.css({position:"absolute",zIndex:r});G.css({position:"relative",zIndex:r+1});F=E('
').css({zIndex:r+1}).appendTo("#cluetip")}var q=(L.dropShadow)?+L.dropShadowSteps:0;if(!J){J=E([]);for(var m=0;m").css({zIndex:r-m-1,opacity:0.1,top:1+m,left:1+m}))}J.css({position:"absolute",backgroundColor:"#000"}).prependTo(I)}var R=E(this);var b=R.attr(L.attribute),P=L.cluetipClass;if(!b&&!L.splitTitle){return true}if(L.local&&L.hideLocal){E(b+":first").hide()}var h=parseInt(L.topOffset,10),Q=parseInt(L.leftOffset,10);var c,S;var Z=isNaN(parseInt(L.height,10))?"auto":(/\D/g).test(L.height)?L.height:L.height+"px";var t,M,T,e,V;var p=parseInt(L.width,10)+parseInt(I.css("paddingLeft"))+parseInt(I.css("paddingRight"))+q;if(isNaN(p)){p=275}var o=this.offsetWidth;var g,U,f,W,a;var n;var N=(L.attribute!="title")?R.attr(L.titleAttribute):"";if(L.splitTitle){n=N.split(L.splitTitle);N=n.shift()}var j;var O=function(y){if(!L.onActivate(R)){return false}k=true;I.removeClass().css({width:L.width});if(b==R.attr("href")){R.css("cursor",L.cursor)}R.attr("title","");if(L.hoverClass){R.addClass(L.hoverClass)}M=T=R.offset().top;g=R.offset().left;W=y.pageX;V=y.pageY;if(R[0].tagName.toLowerCase()!="area"){t=E(document).scrollTop();a=E(window).width()}if(L.positionBy=="fixed"){U=o+g+Q;I.css({left:U})}else{U=(o>g&&g>p)||g+o+p+Q>a?g-p-Q:o+g+Q;if(R[0].tagName.toLowerCase()=="area"||L.positionBy=="mouse"||o+p>a){if(W+20+p>a){U=(W-p-Q)>=0?W-p-Q:W-(p/2)}else{U=W+Q}var v=U<0?y.pageY+h:y.pageY}I.css({left:(U>0&&L.positionBy!="bottomTop")?U:(W+(p/2)>a)?a/2-p/2:Math.max(W-(p/2),0)})}S=E(window).height();if(n){for(var w=0;w'+n[w]+"")}}d(v)}else{if(!L.local&&b.indexOf("#")!=0){if(Y&&L.ajaxCache){H.html(Y);d(v)}else{var z=L.ajaxSettings;z.url=b;z.beforeSend=function(){G.children().empty();if(L.waitImage){E("#cluetip-waitimage").css({top:V-10,left:parseInt(U+(p/2),10)}).show()}H.html("loading")};z.error=function(){if(k){H.html("sorry, the contents could not be loaded")}};z.success=function(AB){if(k){H.html(AB)}};z.complete=function(){C=E("#cluetip-inner img").length;if(C){E("#cluetip-inner img").load(function(){C--;if(C<1){E("#cluetip-waitimage").hide();if(k){d(v)}}})}else{E("#cluetip-waitimage").hide();if(k){d(v)}}};E.ajax(z)}}else{if(L.local){var AA=E(b+":first");var u=E.fn.wrapInner?AA.wrapInner("
").children().clone(true):AA.html();E.fn.wrapInner?H.empty().append(u):H.html(u);d(v)}}}};var d=function(w){I.addClass("cluetip-"+P);if(L.truncate){var y=H.text().slice(0,L.truncate)+"...";H.html(y)}function u(){}N?D.show().html(N):(L.showTitle)?D.show().html(" "):D.hide();if(L.sticky){var v=E('");(L.closePosition=="bottom")?v.appendTo(H):(L.closePosition=="title")?v.prependTo(D):v.prependTo(H);v.click(function(){X();return false});if(L.mouseOutClose){I.hover(function(){u()},function(){v.trigger("click")})}else{I.unbind("mouseout")}}var z="";G.css({overflow:Z=="auto"?"visible":"auto",height:Z});c=Z=="auto"?I.outerHeight():parseInt(Z,10);e=T;if(L.positionBy=="fixed"){e=T-L.dropShadowSteps+h}else{if((UW)||L.positionBy=="bottomTop"){if(T+c+h>t+S&&V-t>c+h){e=V-c-h;z="top"}else{e=V+h;z="bottom"}}else{if(T+c+h>t+S){e=(c>=S)?t:t+S-c-h}else{if(R.css("display")=="block"||R[0].tagName.toLowerCase()=="area"||L.positionBy=="mouse"){e=w-h}else{e=T-L.dropShadowSteps}}}}if(z==""){U=0&&AA>0)?AA+"px":/(left|right)/.test(z)?0:""}).show()}else{F.hide()}J.hide();I.hide()[L.fx.open](L.fx.open!="show"&&L.fx.openSpeed);if(L.dropShadow){J.css({height:c,width:L.width}).show()}L.onShow(I,H)};var s=function(){k=false;E("#cluetip-waitimage").hide();if(!L.sticky){X()}if(L.hoverClass){R.removeClass(L.hoverClass)}};var X=function(){G.parent().hide().removeClass().end().children().empty();if(N){R.attr("title",N)}R.css("cursor","");if(L.arrows){F.css({top:""})}};if(L.activation=="click"||L.activation=="toggle"){R.click(function(u){if(I.is(":hidden")){O(u)}else{s(u)}this.blur();return false})}else{R.click(function(){if(b==R.attr("href")){return false}});if(E.fn.hoverIntent&&L.hoverIntent){R.hoverIntent({sensitivity:L.hoverIntent.sensitivity,interval:L.hoverIntent.interval,over:function(u){O(u)},timeout:L.hoverIntent.timeout,out:function(u){s(u)}})}else{R.hover(function(u){O(u)},function(u){s(u)})}}})};var B="appendTo",A="body";E.cluetip={};E.cluetip.setup=function(K){if(K&&K.insertionType&&(K.insertionType).match(/appendTo|prependTo|insertBefore|insertAfter/)){B=K.insertionType}if(K&&K.insertionElement){A=K.insertionElement}}})(jQuery);$(document).ready(function(){$("a.basic").cluetip({cluetipClass:"bauteil",sticky:false});$("a.basic").css("cursor","help");$("a.lesezeichnen").cluetip({cluetipClass:"lesezeichnen"});$("a.lesezeichnen").css("cursor","help");$("a.warenkorb_layer").cluetip({cluetipClass:"warenkorb_layer"});$("a.warenkorb_layer").css("cursor","help");$(".season").hide();$("#breadcrumb a").each(function(){var A=$(this).attr("href");if(A.indexOf("?")>-1){$(this).attr("href",A+"&b=1")}else{$(this).attr("href",A+"?b=1")}})});function pop_up(F,B,E,A,D){var C="width="+E+",height="+A+",screenX=125,screenY=25,locationbar=no,menubar=no,scrollbars="+D+",resizable=yes,status=yes";popUpFenster=window.open("",B,C);popUpFenster.focus()}function pop_up_center(F,B,E,A,D){popupLeft=(screen.width/2)-(E/2);popupTop=(screen.height/2)-(A/2);var C="width="+E+",height="+A+",left="+popupLeft+",top="+popupTop+",locationbar=no,menubar=no,scrollbars="+D+",resizable=yes,status=yes";popUpFenster=window.open("",B,C);popUpFenster.focus()}function changeFrame(URI,FrameName){Frame=eval("parent."+FrameName);Frame.location.href=URI}function pop_up_url(F,B,E,A,D){var C="width="+E+",height="+A+",screenX=125,screenY=25,locationbar=no,menubar=no,scrollbars="+D+",resizable=yes,status=yes";popUpFenster=window.open(F,B,C);popUpFenster.focus()}function addtofav(){linkUrl=window.location.href;linkTitle=document.getElementsByTagName("title")[0].text;linkUrl=linkUrl.replace(/www1/,"www");linkUrl=linkUrl.replace(/www2/,"www");if((navigator.appName=="Microsoft Internet Explorer")&&(parseInt(navigator.appVersion)>=4)){window.external.AddFavorite(linkUrl,linkTitle);return true}else{if(window.sidebar&&window.sidebar.addPanel){window.sidebar.addPanel(linkTitle,linkUrl,"");return true}else{alert("Please hit [ctrl-d] to bookmark this page");return false}}}(function(E){var B;var F=window.location.host;var I=F.split(".");var A=I[0];var C=I[1];if(A=="de-dev"){C="dev"}E.geekGaTrackPage=function(K,P,M,O,J,N){var L=(("https:"==document.location.protocol)?"https://ssl.":"http://www.");var Q=L+"google-analytics.com/ga.js";E.ajax({type:"GET",url:Q,success:function(){if(typeof _gat!=="undefined"){B=_gat._getTracker(K);if(C!="dev"){B._trackPageview(P)}else{}if(typeof M!=="undefined"){if(C!="dev"){E.geekGaTrackEvent(M,O,J,N)}else{}}}},error:function(){throw"Unable to load ga.js; _gat has not been defined."},dataType:"script",cache:true})};E.geekGaTrackEvent=function(K,M,J,L){if(C=="dev"){return }if(typeof B!=="undefined"){B._trackEvent(K,M,J,L)}else{throw"Unable to track event; pageTracker has not been defined"}};if(typeof plstart!="undefined"&&plstart!==false){var D=new Date();var H=D.getTime()-plstart.getTime();if(H<2000){lc="< 2 Sekunde"}else{if(H<5000){lc="< 5 Sekunde"}else{if(H<10000){lc="< 10 Sekunde"}else{if(H<30000){lc="< 30 Sekunde"}else{if(H<45000){lc="< 45 Sekunde"}else{lc="> 45 Sekunde"}}}}}var G=document.location.pathname;if(document.location.search){G+=document.location.search}E.geekGaTrackPage("UA-4423771-5","","Page Load",lc,G,Math.round(H/1000))}else{E.geekGaTrackPage("UA-4423771-5")}if(A=="www2"||A=="de2-ssl"){E.geekGaTrackPage("UA-4423771-2")}})(jQuery);$(document).ready(function(){$(".eventtrackme").click(function(){var E=$(this).attr("rel").split("|");var C=E[0];var D=E[1];var A=E[2];var B=E[3];$.geekGaTrackEvent(C,D,A,B)})}); /* * jQuery blockUI plugin * Version 2.33 (29-MAR-2010) * @requires jQuery v1.2.3 or later * * Examples at: http://malsup.com/jquery/block/ * Copyright (c) 2007-2008 M. Alsup * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Thanks to Amir-Hossein Sobhi for some excellent contributions! */ (function(I){if(/1\.(0|1|2)\.(0|1|2)/.test(I.fn.jquery)||/^1.1/.test(I.fn.jquery)){alert("blockUI requires jQuery v1.2.3 or later! You are using v"+I.fn.jquery);return }I.fn._fadeIn=I.fn.fadeIn;var C=function(){};var J=document.documentMode||0;var E=I.browser.msie&&((I.browser.version<8&&!J)||J<8);var F=I.browser.msie&&/MSIE 6.0/.test(navigator.userAgent)&&!J;I.blockUI=function(P){D(window,P)};I.unblockUI=function(P){H(window,P)};I.growlUI=function(T,R,S,P){var Q=I('
');if(T){Q.append("

"+T+"

")}if(R){Q.append("

"+R+"

")}if(S==undefined){S=3000}I.blockUI({message:Q,fadeIn:700,fadeOut:1000,centerY:false,timeout:S,showOverlay:false,onUnblock:P,css:I.blockUI.defaults.growlCSS})};I.fn.block=function(P){return this.unblock({fadeOut:0}).each(function(){if(I.css(this,"position")=="static"){this.style.position="relative"}if(I.browser.msie){this.style.zoom=1}D(this,P)})};I.fn.unblock=function(P){return this.each(function(){H(this,P)})};I.blockUI.version=2.33;I.blockUI.defaults={message:"

Please wait...

",title:null,draggable:true,theme:false,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:0.6,cursor:"wait"},growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:0.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:false,baseZ:1000,centerX:true,centerY:true,allowBodyStretch:true,bindEvents:true,constrainTabKey:true,fadeIn:200,fadeOut:400,timeout:0,showOverlay:true,focusInput:true,applyPlatformOpacityRules:true,onBlock:null,onUnblock:null,quirksmodeOffsetHack:4};var B=null;var G=[];function D(R,c){var X=(R==window);var U=c&&c.message!==undefined?c.message:undefined;c=I.extend({},I.blockUI.defaults,c||{});c.overlayCSS=I.extend({},I.blockUI.defaults.overlayCSS,c.overlayCSS||{});var Z=I.extend({},I.blockUI.defaults.css,c.css||{});var m=I.extend({},I.blockUI.defaults.themedCSS,c.themedCSS||{});U=U===undefined?c.message:U;if(X&&B){H(window,{fadeOut:0})}if(U&&typeof U!="string"&&(U.parentNode||U.jquery)){var f=U.jquery?U[0]:U;var o={};I(R).data("blockUI.history",o);o.el=f;o.parent=f.parentNode;o.display=f.style.display;o.position=f.style.position;if(o.parent){o.parent.removeChild(f)}}var Y=c.baseZ;var k=(I.browser.msie||c.forceIframe)?I(''):I('');var j=I('');var h,d;if(c.theme&&X){d=''}else{if(c.theme){d=''}else{if(X){d=''}else{d=''}}}h=I(d);if(U){if(c.theme){h.css(m);h.addClass("ui-widget-content")}else{h.css(Z)}}if(!c.applyPlatformOpacityRules||!(I.browser.mozilla&&/Linux/.test(navigator.platform))){j.css(c.overlayCSS)}j.css("position",X?"fixed":"absolute");if(I.browser.msie||c.forceIframe){k.css("opacity",0)}var W=[k,j,h],n=X?I("body"):I(R);I.each(W,function(){this.appendTo(n)});if(c.theme&&c.draggable&&I.fn.draggable){h.draggable({handle:".ui-dialog-titlebar",cancel:"li"})}var T=E&&(!I.boxModel||I("object,embed",X?null:R).length>0);if(F||T){if(X&&c.allowBodyStretch&&I.boxModel){I("html,body").css("height","100%")}if((F||!I.boxModel)&&!X){var b=M(R,"borderTopWidth"),g=M(R,"borderLeftWidth");var V=b?"(0 - "+b+")":0;var a=g?"(0 - "+g+")":0}I.each([k,j,h],function(p,u){var q=u[0].style;q.position="absolute";if(p<2){X?q.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.boxModel?0:"+c.quirksmodeOffsetHack+') + "px"'):q.setExpression("height",'this.parentNode.offsetHeight + "px"');X?q.setExpression("width",'jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):q.setExpression("width",'this.parentNode.offsetWidth + "px"');if(a){q.setExpression("left",a)}if(V){q.setExpression("top",V)}}else{if(c.centerY){if(X){q.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"')}q.marginTop=0}else{if(!c.centerY&&X){var r=(c.css&&c.css.top)?parseInt(c.css.top):0;var t="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+r+') + "px"';q.setExpression("top",t)}}}})}if(U){if(c.theme){h.find(".ui-widget-content").append(U)}else{h.append(U)}if(U.jquery||U.nodeType){I(U).show()}}if((I.browser.msie||c.forceIframe)&&c.showOverlay){k.show()}if(c.fadeIn){var e=c.onBlock?c.onBlock:C;var Q=(c.showOverlay&&!U)?e:C;var P=U?e:C;if(c.showOverlay){j._fadeIn(c.fadeIn,Q)}if(U){h._fadeIn(c.fadeIn,P)}}else{if(c.showOverlay){j.show()}if(U){h.show()}if(c.onBlock){c.onBlock()}}L(1,R,c);if(X){B=h[0];G=I(":input:enabled:visible",B);if(c.focusInput){setTimeout(O,20)}}else{A(h[0],c.centerX,c.centerY)}if(c.timeout){var S=setTimeout(function(){X?I.unblockUI(c):I(R).unblock(c)},c.timeout);I(R).data("blockUI.timeout",S)}}function H(S,T){var R=(S==window);var Q=I(S);var U=Q.data("blockUI.history");var V=Q.data("blockUI.timeout");if(V){clearTimeout(V);Q.removeData("blockUI.timeout")}T=I.extend({},I.blockUI.defaults,T||{});L(0,S,T);var P;if(R){P=I("body").children().filter(".blockUI").add("body > .blockUI")}else{P=I(".blockUI",S)}if(R){B=G=null}if(T.fadeOut){P.fadeOut(T.fadeOut);setTimeout(function(){K(P,U,T,S)},T.fadeOut)}else{K(P,U,T,S)}}function K(P,S,R,Q){P.each(function(T,U){if(this.parentNode){this.parentNode.removeChild(this)}});if(S&&S.el){S.el.style.display=S.display;S.el.style.position=S.position;if(S.parent){S.parent.appendChild(S.el)}I(Q).removeData("blockUI.history")}if(typeof R.onUnblock=="function"){R.onUnblock(Q,R)}}function L(P,T,U){var S=T==window,R=I(T);if(!P&&(S&&!B||!S&&!R.data("blockUI.isBlocked"))){return }if(!S){R.data("blockUI.isBlocked",P)}if(!U.bindEvents||(P&&!U.showOverlay)){return }var Q="mousedown mouseup keydown keypress";P?I(document).bind(Q,U,N):I(document).unbind(Q,N)}function N(S){if(S.keyCode&&S.keyCode==9){if(B&&S.data.constrainTabKey){var R=G;var Q=!S.shiftKey&&S.target==R[R.length-1];var P=S.shiftKey&&S.target==R[0];if(Q||P){setTimeout(function(){O(P)},10);return false}}}if(I(S.target).parents("div.blockMsg").length>0){return true}return I(S.target).parents().children().filter("div.blockUI").length==0}function O(P){if(!G){return }var Q=G[P===true?G.length-1:0];if(Q){Q.focus()}}function A(T,P,V){var U=T.parentNode,S=T.style;var Q=((U.offsetWidth-T.offsetWidth)/2)-M(U,"borderLeftWidth");var R=((U.offsetHeight-T.offsetHeight)/2)-M(U,"borderTopWidth");if(P){S.left=Q>0?(Q+"px"):"0"}if(V){S.top=R>0?(R+"px"):"0"}}function M(P,Q){return parseInt(I.css(P,Q))||0}})(jQuery);var tb_pathToImage="/global/medien/skripte/js/loadingAnimation.gif";$(document).ready(function(){tb_init("a.thickbox, area.thickbox, input.thickbox");imgLoader=new Image();imgLoader.src=tb_pathToImage});function tb_init(A){$(A).click(function(){var C=this.title||this.name||null;var B=this.href||this.alt;var D=this.rel||false;tb_show(C,B,D);this.blur();return false})}function tb_show(I,B,G){try{if(typeof document.body.style.maxHeight==="undefined"){$("body","html").css({height:"100%",width:"100%"});$("html").css("overflow","hidden");if(document.getElementById("TB_HideSelect")===null){$("body").append("
");$("#TB_overlay").click(tb_remove)}}else{if(document.getElementById("TB_overlay")===null){$("body").append("
");$("#TB_overlay").click(tb_remove)}}if(tb_detectMacXFF()){$("#TB_overlay").addClass("TB_overlayMacFFBGHack")}else{$("#TB_overlay").addClass("TB_overlayBG")}if(I===null){I=""}$("body").append("
");$("#TB_load").show();var C;if(B.indexOf("?")!==-1){C=B.substr(0,B.indexOf("?"))}else{C=B}var E=/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/;var J=C.toLowerCase().match(E);if(J==".jpg"||J==".jpeg"||J==".png"||J==".gif"||J==".bmp"){TB_PrevCaption="";TB_PrevURL="";TB_PrevHTML="";TB_NextCaption="";TB_NextURL="";TB_NextHTML="";TB_imageCount="";TB_FoundURL=false;if(G){TB_TempArray=$("a[@rel="+G+"]").get();for(TB_Counter=0;((TB_Counter  Next >"}else{TB_PrevCaption=TB_TempArray[TB_Counter].title;TB_PrevURL=TB_TempArray[TB_Counter].href;TB_PrevHTML="  < Prev"}}else{TB_FoundURL=true;TB_imageCount="Image "+(TB_Counter+1)+" of "+(TB_TempArray.length)}}}imgPreloader=new Image();imgPreloader.onload=function(){imgPreloader.onload=null;var N=tb_getPageSize();var L=N[0]-150;var Q=N[1]-150;var M=imgPreloader.width;var K=imgPreloader.height;if(M>L){K=K*(L/M);M=L;if(K>Q){M=M*(Q/K);K=Q}}else{if(K>Q){M=M*(Q/K);K=Q;if(M>L){K=K*(L/M);M=L}}}TB_WIDTH=M+30;TB_HEIGHT=K+60;$("#TB_window").append(""+I+"
"+I+"
"+TB_imageCount+TB_PrevHTML+TB_NextHTML+"
Schließen oder Esc-Taste drucken
");$("#TB_closeWindowButton").click(tb_remove);if(!(TB_PrevHTML==="")){function P(){if($(document).unbind("click",P)){$(document).unbind("click",P)}$("#TB_window").remove();$("body").append("
");tb_show(TB_PrevCaption,TB_PrevURL,G);return false}$("#TB_prev").click(P)}if(!(TB_NextHTML==="")){function O(){$("#TB_window").remove();$("body").append("
");tb_show(TB_NextCaption,TB_NextURL,G);return false}$("#TB_next").click(O)}document.onkeydown=function(R){if(R==null){keycode=event.keyCode}else{keycode=R.which}if(keycode==27){tb_remove()}else{if(keycode==190){if(!(TB_NextHTML=="")){document.onkeydown="";O()}}else{if(keycode==188){if(!(TB_PrevHTML=="")){document.onkeydown="";P()}}}}};tb_position();$("#TB_load").remove();$("#TB_ImageOff").click(tb_remove);$("#TB_window").css({display:"block"})};imgPreloader.src=B}else{var A=B.replace(/^[^\?]+\??/,"");var D=tb_parseQuery(A);TB_WIDTH=(D.width*1)+30||630;TB_HEIGHT=(D.height*1)+40||440;ajaxContentW=TB_WIDTH-30;ajaxContentH=TB_HEIGHT-45;if(B.indexOf("TB_iframe")!=-1){urlNoQuery=B.split("TB_");$("#TB_iframeContent").remove();if(D.modal!="true"){$("#TB_window").append("
"+I+"
Schließen oder Esc-Taste drucken
")}else{$("#TB_overlay").unbind();$("#TB_window").append("")}}else{if($("#TB_window").css("display")!="block"){if(D.modal!="true"){$("#TB_window").append("
"+I+"
Schließen oder Esc-Taste drucken
")}else{$("#TB_overlay").unbind();$("#TB_window").append("
")}}else{$("#TB_ajaxContent")[0].style.width=ajaxContentW+"px";$("#TB_ajaxContent")[0].style.height=ajaxContentH+"px";$("#TB_ajaxContent")[0].scrollTop=0;$("#TB_ajaxWindowTitle").html(I)}}$("#TB_closeWindowButton").click(tb_remove);if(B.indexOf("TB_inline")!=-1){$("#TB_ajaxContent").append($("#"+D.inlineId).children());$("#TB_window").unload(function(){$("#"+D.inlineId).append($("#TB_ajaxContent").children())});tb_position();$("#TB_load").remove();$("#TB_window").css({display:"block"})}else{if(B.indexOf("TB_iframe")!=-1){tb_position();if($.browser.safari){$("#TB_load").remove();$("#TB_window").css({display:"block"})}}else{$("#TB_ajaxContent").load(B+="&random="+(new Date().getTime()),function(){tb_position();$("#TB_load").remove();tb_init("#TB_ajaxContent a.thickbox");$("#TB_window").css({display:"block"})})}}}if(!D.modal){document.onkeyup=function(K){if(K==null){keycode=event.keyCode}else{keycode=K.which}if(keycode==27){tb_remove()}}}}catch(H){}}function tb_showIframe(){$("#TB_load").remove();$("#TB_window").css({display:"block"})}function tb_remove(){$("#TB_imageOff").unbind("click");$("#TB_closeWindowButton").unbind("click");$("#TB_window").hide();$("#TB_window").fadeOut("fast",function(){$("#TB_window,#TB_overlay,#TB_HideSelect").trigger("unload").unbind().remove()});$("#TB_load").remove();if(typeof document.body.style.maxHeight=="undefined"){$("body","html").css({height:"auto",width:"auto"});$("html").css("overflow","")}document.onkeydown="";document.onkeyup="";return false}function tb_position(){$("#TB_window").css({marginLeft:"-"+parseInt((TB_WIDTH/2),10)+"px",width:TB_WIDTH+"px"});if(!(jQuery.browser.msie&&jQuery.browser.version<7)){$("#TB_window").css({marginTop:"-"+parseInt((TB_HEIGHT/2),10)+"px"})}}function tb_parseQuery(D){var E={};if(!D){return E}var A=D.split(/[;&]/);for(var C=0;C=0?"&":"?")+q;options.data=null}else{options.data=q}var $form=this,callbacks=[];if(options.resetForm){callbacks.push(function(){$form.resetForm()})}if(options.clearForm){callbacks.push(function(){$form.clearForm()})}if(!options.dataType&&options.target){var oldSuccess=options.success||function(){};callbacks.push(function(data,status){jQuery(options.target).attr("innerHTML",data).evalScripts().each(oldSuccess,[data,status])})}else{if(options.success){callbacks.push(options.success)}}options.success=function(data,status){for(var i=0,max=callbacks.length;i');var io=$io[0];var op8=jQuery.browser.opera&&window.opera.version()<9;if(jQuery.browser.msie||op8){io.src='javascript:false;document.write("");'}$io.css({position:"absolute",top:"-1000px",left:"-1000px"});form.method="POST";form.encoding?form.encoding="multipart/form-data":form.enctype="multipart/form-data";var xhr={responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){}};var g=opts.global;if(g&&!jQuery.active++){jQuery.event.trigger("ajaxStart")}if(g){jQuery.event.trigger("ajaxSend",[xhr,opts])}var cbInvoked=0;var timedOut=0;setTimeout(function(){$io.appendTo("body");io.attachEvent?io.attachEvent("onload",cb):io.addEventListener("load",cb,false);form.action=opts.url;var t=form.target;form.target=id;if(opts.timeout){setTimeout(function(){timedOut=true;cb()},opts.timeout)}form.submit();form.target=t},10);function cb(){if(cbInvoked++){return }io.detachEvent?io.detachEvent("onload",cb):io.removeEventListener("load",cb,false);var ok=true;try{if(timedOut){throw"timeout"}var data,doc;doc=io.contentWindow?io.contentWindow.document:io.contentDocument?io.contentDocument:io.document;xhr.responseText=doc.body?doc.body.innerHTML:null;xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc;if(opts.dataType=="json"||opts.dataType=="script"){var ta=doc.getElementsByTagName("textarea")[0];data=ta?ta.value:xhr.responseText;if(opts.dataType=="json"){eval("data = "+data)}else{jQuery.globalEval(data)}}else{if(opts.dataType=="xml"){data=xhr.responseXML;if(!data&&xhr.responseText!=null){data=toXml(xhr.responseText)}}else{data=xhr.responseText}}}catch(e){ok=false;jQuery.handleError(opts,xhr,"error",e)}if(ok){opts.success(data,"success");if(g){jQuery.event.trigger("ajaxSuccess",[xhr,opts])}}if(g){jQuery.event.trigger("ajaxComplete",[xhr,opts])}if(g&&!--jQuery.active){jQuery.event.trigger("ajaxStop")}if(opts.complete){opts.complete(xhr,ok?"success":"error")}setTimeout(function(){$io.remove();xhr.responseXML=null},100)}function toXml(s,doc){if(window.ActiveXObject){doc=new ActiveXObject("Microsoft.XMLDOM");doc.async="false";doc.loadXML(s)}else{doc=(new DOMParser()).parseFromString(s,"text/xml")}return(doc&&doc.documentElement&&doc.documentElement.tagName!="parsererror")?doc:null}}};jQuery.fn.ajaxSubmit.counter=0;jQuery.fn.ajaxForm=function(A){return this.each(function(){jQuery("input:submit,input:image,button:submit",this).click(function(C){var B=this.form;B.clk=this;if(this.type=="image"){if(C.offsetX!=undefined){B.clk_x=C.offsetX;B.clk_y=C.offsetY}else{if(typeof jQuery.fn.offset=="function"){var D=jQuery(this).offset();B.clk_x=C.pageX-D.left;B.clk_y=C.pageY-D.top}else{B.clk_x=C.pageX-this.offsetLeft;B.clk_y=C.pageY-this.offsetTop}}}setTimeout(function(){B.clk=B.clk_x=B.clk_y=null},10)})}).submit(function(B){jQuery(this).ajaxSubmit(A);return false})};jQuery.fn.formToArray=function(L){var K=[];if(this.length==0){return K}var B=this[0];var F=L?B.getElementsByTagName("*"):B.elements;if(!F){return K}for(var G=0,I=F.length;G0){var A="#"+$("#"+B).children(".layerheader").attr("id")}else{var A="#"+$("#"+B).children(".imagelayerheader").attr("id")}$("#"+B).children(".layerheader").css("cursor","default");$("#"+B).children(".imagelayerheader").css("cursor","default");if($("#"+B).children(".imagelayercontent").length>0){$("#"+B).children(".imagelayercontent").click(function(){$("#"+B).hide();if(layersopen>0){layersopen--}return false})}$(A).children(".closewindow").click(function(){$("#"+B).hide();layersopen--;return false})});$("#produktfrage_form").ajaxForm({target:"#produktfrage_content_2",beforeSubmit:proofFrage,dataType:"script"});$("#empfehlung_form").ajaxForm({target:"#empfehlung_content_2",beforeSubmit:proofEmpfehlung,dataType:"script"})});function isNumeric(A){if(A===null||!A.toString().match(/^[-]?\d*\.?\d*$/)){return false}return true}function proofFrage(B,A,E){var D=A[0];var C=false;$("#frageerror").hide();$("#errortext").hide();$("#errortext2").hide();if(!D.nameid.value){$("#name").css({color:"red"});C=true}else{$("#name").css({color:"#666666"})}if(!D.emailid.value){$("#email").css({color:"red"});C=true}else{$("#email").css({color:"#666666"})}if(C===true){$("#errortext").show();$("#frageerror").show();return false}return true}function proofEmpfehlung(B,A,E){var D=A[0];var C=false;$("#empfehlerror").hide();$("#eerrortext").hide();$("#eerrortext2").hide();if(!D.enameid.value){$("#ename").css({color:"red"});C=true}else{$("#ename").css({color:"#666666"})}if(!D.eemailid.value){$("#eemail").css({color:"red"});C=true}else{$("#eemail").css({color:"#666666"})}if(!D.eenameid.value){$("#eename").css({color:"red"});C=true}else{$("#eename").css({color:"#666666"})}if(!D.eeemailid.value){$("#eeemail").css({color:"red"});C=true}else{$("#eeemail").css({color:"#666666"})}if(C===true){$("#eerrortext").show();$("#empfehlerror").show();return false}return true}function loadit(F){x=F.data.layer;$(x+" .wait").hide();$(x+" .ondemand").attr("src",$(x+" .ondemand").attr("rel"));$(x+" .ondemand").show();if($.browser.msie){var E=$(x+" .ondemand").height()+60;var C=$(x+" .ondemand").attr("width")+40;var D=viewport();var B=((D.sy-E)/2)+D.y+(layersopen*20);var A=((D.sx-C)/2)+D.x+(layersopen*20);var G={top:B,left:A,width:C};$(x).css(G)}}function showlayer(E){layersopen++;var H="#"+E;if($(H+" .ondemand").length>0&&$(H+" .ondemand").attr("rel")!=$(H+" .ondemand").attr("src")){img=new Image();img.src=$(H+" .ondemand").attr("rel");$(img).bind("load",{layer:H},loadit)}else{if($(H+" .urlondemand").length>0&&$(H+" .urlondemand").attr("rel")!=$(H+" .urlondemand").attr("src")){$(H+" .urlondemand").attr("src",$(H+" .urlondemand").attr("rel"))}}$(H).prependTo("body");var J=viewport();if($(H).hasClass("imagelayerrahmen")&&$(H+" .ondemand").length>0){if($.browser.msie){var B=100;var I=600}else{var B=$(H+" .ondemand").attr("height")+60;var I=$(H+" .ondemand").attr("width")+40}}else{var B=$(H).height();var I=$(H).width()}var G=((J.sy-B)/2)+J.y+(layersopen*20);var F=((J.sx-I)/2)+J.x+(layersopen*20);var D={top:G,left:F,width:I};$(H).css(D).fadeIn("slow");if(!$.browser.msie){var J=viewport();var A=$(H).offset();var C=(J.y-A.top);if(C>0){$(H).animate({top:A.top+C+10})}}$(H).mouseout(function(){$(H).css("z-index",10)});$(H).mouseover(function(){$(H).css("z-index",100)})}(function($){$.extend({tablesorter:new function(){var parsers=[],widgets=[];this.defaults={cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,textExtraction:"simple",parsers:{},widgets:[],widgetZebra:{css:["even","odd"]},headers:{},widthFixed:false,cancelSelection:true,sortList:[],headerList:[],dateFormat:"us",decimal:".",debug:false};function benchmark(s,d){log(s+","+(new Date().getTime()-d.getTime())+"ms")}this.benchmark=benchmark;function log(s){if(typeof console!="undefined"&&typeof console.debug!="undefined"){console.log(s)}else{alert(s)}}function buildParserCache(table,$headers){if(table.config.debug){var parsersDebug=""}var rows=table.tBodies[0].rows;if(table.tBodies[0].rows[0]){var list=[],cells=rows[0].cells,l=cells.length;for(var i=0;i1){arr=arr.concat(checkCellColSpan(table,headerArr,row++))}else{if(table.tHead.length==1||(cell.rowSpan>1||!r[row+1])){arr.push(cell)}}}return arr}function checkHeaderMetadata(cell){if(($.metadata)&&($(cell).metadata().sorter===false)){return true}return false}function checkHeaderOptions(table,i){if((table.config.headers[i])&&(table.config.headers[i].sorter===false)){return true}return false}function applyWidget(table){var c=table.config.widgets;var l=c.length;for(var i=0;i");$("tr:first td",table.tBodies[0]).each(function(){colgroup.append($("").css("width",$(this).width()))});$(table).prepend(colgroup)}}function updateHeaderSortCount(table,sortList){var c=table.config,l=sortList.length;for(var i=0;ib)?1:0))}function sortTextDesc(a,b){return((ba)?1:0))}function sortNumeric(a,b){return a-b}function sortNumericDesc(a,b){return b-a}function getCachedSortType(parsers,i){return parsers[i].type}this.construct=function(settings){return this.each(function(){if(!this.tHead||!this.tBodies){return }var $this,$document,$headers,cache,config,shiftDown=0,sortOrder;this.config={};config=$.extend(this.config,$.tablesorter.defaults,settings);$this=$(this);$headers=buildHeaders(this);this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);var sortCSS=[config.cssDesc,config.cssAsc];fixColumnWidth(this);$headers.click(function(e){$this.trigger("sortStart");var totalRows=($this[0].tBodies[0]&&$this[0].tBodies[0].rows.length)||0;if(!this.sortDisabled&&totalRows>0){var $cell=$(this);var i=this.column;this.order=this.count++%2;if(!e[config.sortMultiSortKey]){config.sortList=[];if(config.sortForce!=null){var a=config.sortForce;for(var j=0;j0){$this.trigger("sorton",[config.sortList])}applyWidget(this)})};this.addParser=function(parser){var l=parsers.length,a=true;for(var i=0;i"+L+""}else{N=L}M=M+''+N+" | "}A(P.cssPageDisplay,P.container).html(M)}else{var N="";A(P.cssPageLink,P.container).each(function(){var Q=A(this).attr("href").split("#");N=Q[1];if(N==(P.page+1)){N=""+N+""}A(this).html(N)});var O=A(".pager :first").offset();A("html, body").animate({scrollTop:O.top},400)}}function B(M,L){var N=M.config;N.size=L;N.totalPages=Math.ceil(N.totalRows/N.size);N.pagerPositionSet=false;E(M);F(M)}function F(L){var N=L.config;if(!N.pagerPositionSet&&N.positionFixed){var N=L.config,M=A(L);if(M.offset){N.container.css({top:M.offset().top+M.height()+"px",position:"absolute"})}N.pagerPositionSet=true}}function G(L){var M=L.config;M.page=0;E(L)}function C(L){var M=L.config;M.page=(M.totalPages-1);E(L)}function J(L){var M=L.config;M.page++;if(M.page>=(M.totalPages-1)){M.page=(M.totalPages-1)}E(L)}function H(L){var M=L.config;M.page--;if(M.page<=0){M.page=0}E(L)}function D(M,N){var O=N.config;var L=M.split("#");O.page=parseInt(L[1])-1;if(O.page>=(O.totalPages-1)){O.page=(O.totalPages-1)}E(N)}function E(L){var M=L.config;if(M.page<0||M.page>(M.totalPages-1)){M.page=0}I(L,M.rowsCopy)}function I(S,T){var R=S.config;var N=T.length;var U=(R.page*R.size);var Q=(U+R.size);if(Q>T.length){Q=T.length}var M=A(S.tBodies[0]);A.tablesorter.clearTableBody(S);for(var P=U;P=R.totalPages){C(S)}K(R)}this.appender=function(L,M){var N=L.config;N.rowsCopy=M;N.totalRows=M.length;N.totalPages=Math.ceil(N.totalRows/N.size);I(L,M)};this.defaults={size:10,offset:0,page:0,totalRows:0,totalPages:0,container:null,cssNext:".next",cssPrev:".prev",cssFirst:".first",cssLast:".last",cssPageDisplay:".pagedisplay",cssPageSize:".pagesize",cssPageLink:".pagedisplay a",seperator:"/",positionFixed:true,appender:this.appender};this.construct=function(L){return this.each(function(){config=A.extend(this.config,A.tablesorterPager.defaults,L);var N=this,M=config.container;A(this).trigger("appendCache");config.size=parseInt(A(".pagesize",M).val());A(config.cssFirst,M).click(function(){G(N);return false});A(config.cssNext,M).click(function(){J(N);return false});A(config.cssPrev,M).click(function(){H(N);return false});A(config.cssLast,M).click(function(){C(N);return false});A(config.cssPageSize,M).change(function(){B(N,parseInt(A(this).val()));return false});A(config.cssPageLink,M).click(function(){D(A(this).attr("href"),N);return false})})}}});A.fn.extend({tablesorterPager:A.tablesorterPager.construct})})(jQuery);var found="";$(document).ready(function(){$.tablesorter.addParser({id:"price",is:function(A){return false},format:function(A){A=A.replace(".","").replace(",",".").replace(/[^0-9.]+/g,"");return A},type:"numeric"});$.tablesorter.defaults.widgets=["zebra"];$("#produkts").tablesorter({sortList:[[1,0]],pagerPositionSet:true,headers:{2:{sorter:"price"},3:{sorter:false},4:{sorter:false}},textExtraction:findsortable});$(".addpaginator").find("#produkts").tablesorterPager({container:$(".pager"),size:20});$(".toggle").click(function(){$("#"+$(this).attr("rel")).toggle();$("#o"+$(this).attr("rel")).toggle();$("#c"+$(this).attr("rel")).toggle();return false});$(".showonjavascript").show()});var findsortable=function(A){var B="";if($(A).hasClass("pricearea")){B=findchildelement($(A),"price")}else{if($(A).hasClass("produktinfo")){B=findchildelement($(A),"produktname")}else{if($(A).hasClass("markeninfo")){B=findchildelement($(A),"marke")}else{B=$(A).html()}}}return B};function findchildelement(A,B){$(A).children().each(function(){if($(this).hasClass(B)){found=$(this).html();return false}else{return findchildelement($(this),B)}});return found}$(document).ready(function(){$(".AHKESATZLINK").click(function(){var A=$("#platzhalter").html();show=$(this).attr("rel");if(A==""){$("#platzhalter").html($("#"+show).html());$("#techinfo").slideDown()}else{$("#platzhalter").slideUp(function(){$("#platzhalter").html($("#"+show).html());$("#platzhalter").slideDown()})}return false});$(".jump").click(function(C){parts=this.href.split("#");var B=jQuery("#"+parts[1]).offset();var A=B.top;$("html, body").animate({scrollTop:A},800);if($(this).attr("rel")){$("#"+$(this).attr("rel")).click()}return false});$("ul.tabNav a").click(function(){var A=$(this).parent().prevAll().length+1;var B=$(this).parent().hasClass("current");if(!B){$(this).parent().parent().children(".current").removeClass("current");$(this).parent().addClass("current");$(this).parent().parent().next(".tabContainer").children(".current").slideUp("fast",function(){$(this).removeClass("current");$(this).parent().children("div:nth-child("+A+")").slideDown("normal",function(){$(this).addClass("current")})})}return false});$("#produktbild").clone(true).prependTo(".produktbild_copy")});function druckit(A){var B=window.open("/service/druckversion/produktseite.php?produkt_id="+A,"druck","width=560,height=600,resizeable=yes,scrollbars=yes");if(B.focus){B.focus()}return false}$(document).ready(function(){if($("#selLaufzeit").length>0){$("#wunschbetrag").change(function(){calcit()});$("#selLaufzeit").change(function(){calcit()});calcit()}});function calcit(){var F=$("#wunschbetrag").val();var E=1*F.replace(".","").replace(",",".");if(E>=99){var C=$("#selLaufzeit").val();if(C>3){var A=(E*0.099);var D=(C/12)*A;E=E+D}var B=(E/C);B=roundNumber(B,2);B=B.toFixed(2);$("#result").html(String(B).replace(".",","))}}function roundNumber(B,C){var A=Math.round(B*Math.pow(10,C))/Math.pow(10,C);return A};