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;B<C.length;B++){var F=C[B].indexOf("=");if(F>0){var A=C[B].substring(0,F);var E=C[B].substring(F+1);qsParm[A]=E}}}if(top!=self&&top.location.hostname.indexOf(document.domain)==-1){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("/warenkorb2010/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();$("a","#mainNav").each(function(){var D=$(this).attr("href");var E="?";if(D.indexOf("?")>=0){E="&"}$(this).attr("href",D+E+"q=1")});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("/warenkorb2010/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").html(J).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<E.length;C++){A(E[C]).css("z-index",String(E.length-C)).css("position","absolute");A(E[C]).hide()}if(D.type=="sequence"){setTimeout(function(){A.innerfade.next(E,D,1,0)},D.timeout);A(E[0]).show()}else{if(D.type=="random"){setTimeout(function(){do{current=Math.floor(Math.random()*(E.length))}while(current==0);A.innerfade.next(E,D,current,0)},D.timeout);A(E[0]).show()}else{alert("type must either be 'sequence' or 'random'")}}}})};A.innerfade=function(){};A.innerfade.next=function(D,B,E,C){if(B.animationtype=="slide"){A(D[C]).slideUp(B.speed,A(D[E]).slideDown(B.speed))}else{if(B.animationtype=="fade"){A(D[C]).fadeOut(B.speed);A(D[E]).fadeIn(B.speed)}else{alert("animationtype must either be 'slide' or 'fade'")}}if(B.type=="sequence"){if((E+1)<D.length){E=E+1;C=E-1}else{E=0;C=D.length-1}}else{if(B.type=="random"){C=E;while(E==C){E=Math.floor(Math.random()*(D.length))}}else{alert("type must either be 'sequence' or 'random'")}}setTimeout((function(){A.innerfade.next(D,B,E,C)}),B.timeout)}})(jQuery);(function(A){A.fn.hoverIntent=function(I,H){var J={sensitivity:7,interval:100,timeout:0};J=A.extend(J,H?{over:I,out:H}:I);var L,K,F,D;var E=function(M){L=M.pageX;K=M.pageY};var C=function(N,M){M.hoverIntent_t=clearTimeout(M.hoverIntent_t);if((Math.abs(F-L)+Math.abs(D-K))<J.sensitivity){A(M).unbind("mousemove",E);M.hoverIntent_s=1;return J.over.apply(M,[N])}else{F=L;D=K;M.hoverIntent_t=setTimeout(function(){C(N,M)},J.interval)}};var G=function(N,M){M.hoverIntent_t=clearTimeout(M.hoverIntent_t);M.hoverIntent_s=0;return J.out.apply(M,[N])};var B=function(P){var O=(P.type=="mouseover"?P.fromElement:P.toElement)||P.relatedTarget;while(O&&O!=this){try{O=O.parentNode}catch(P){O=this}}if(O==this){return false}var N=jQuery.extend({},P);var M=this;if(M.hoverIntent_t){M.hoverIntent_t=clearTimeout(M.hoverIntent_t)}if(P.type=="mouseover"){F=N.pageX;D=N.pageY;A(M).bind("mousemove",E);if(M.hoverIntent_s!=1){M.hoverIntent_t=setTimeout(function(){C(N,M)},J.interval)}}else{A(M).unbind("mousemove",E);if(M.hoverIntent_s==1){M.hoverIntent_t=setTimeout(function(){G(N,M)},J.timeout)}}};return this.mouseover(B).mouseout(B)}})(jQuery);(function(E){var I,H,G,D,F,J,C;E.fn.cluetip=function(K){var L={width:160,height:"auto",cluezIndex:97,positionBy:"fixed",topOffset:5,leftOffset:-180,local:true,hideLocal:true,attribute:"rel",titleAttribute:"title",splitTitle:"",showTitle:true,cluetipClass:"default",hoverClass:"",waitImage:false,cursor:"help",arrows:false,dropShadow:true,dropShadowSteps:6,sticky:false,mouseOutClose:true,activation:"hover",closePosition:"top",closeText:"Close",truncate:0,fx:{open:"show",openSpeed:""},hoverIntent:{sensitivity:3,interval:50,timeout:0},onActivate:function(M){return true},onShow:function(M,N){},ajaxCache:true,ajaxProcess:function(M){M=E(M).not("style, meta, link, script, title");return M},ajaxSettings:{dataType:"html"}};if(K&&K.ajaxSettings){E.extend(L.ajaxSettings,K.ajaxSettings);delete K.ajaxSettings}if(K&&K.fx){E.extend(L.fx,K.fx);delete K.fx}if(K&&K.hoverIntent){E.extend(L.hoverIntent,K.hoverIntent);delete K.hoverIntent}E.extend(L,K);return this.each(function(){var Y=false;var r=parseInt(L.cluezIndex,10)-1;var k=false;if(!I){H=E('<div id="cluetip-inner"></div>');D=E('<h3 id="cluetip-title"></h3>');G=E('<div id="cluetip-outer"></div>').append(H).prepend(D);I=E("<div></div>").attr({id:"cluetip"}).css({zIndex:L.cluezIndex}).append(G).append('<div id="cluetip-extra"></div>')[B](A).hide();E('<div id="cluetip-waitimage"></div>').css({position:"absolute",zIndex:r-1}).insertBefore("#cluetip").hide();I.css({position:"absolute",zIndex:r});G.css({position:"relative",zIndex:r+1});F=E('<div id="cluetip-arrows" class="cluetip-arrows"></div>').css({zIndex:r+1}).appendTo("#cluetip")}var q=(L.dropShadow)?+L.dropShadowSteps:0;if(!J){J=E([]);for(var m=0;m<q;m++){J=J.add(E("<div></div>").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.length;w++){if(w==0){H.html(n[w])}else{H.append('<div class="split-body">'+n[w]+"</div>")}}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("<i>loading</i>")};z.error=function(){if(k){H.html("<i>sorry, the contents could not be loaded</i>")}};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("<div></div>").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("&nbsp;"):D.hide();if(L.sticky){var v=E('<div id="cluetip-close"><a href="#">'+L.closeText+"</a></div>");(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((U<W&&Math.max(U,0)+p>W)||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<g?z="left":z="right"}I.css({top:e+"px"}).removeClass().addClass("clue-"+z+"-"+P).addClass(" cluetip-"+P);if(L.arrows){var AA=(T-e-L.dropShadowSteps);F.css({top:(/(left|right)/.test(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);B._setDomainName("none");B._setAllowLinker(true);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('<div class="growlUI"></div>');if(T){Q.append("<h1>"+T+"</h1>")}if(R){Q.append("<h2>"+R+"</h2>")}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:"<h1>Please wait...</h1>",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('<iframe class="blockUI" style="z-index:'+(Y++)+';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+c.iframeSrc+'"></iframe>'):I('<div class="blockUI" style="display:none"></div>');var j=I('<div class="blockUI blockOverlay" style="z-index:'+(Y++)+';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');var h,d;if(c.theme&&X){d='<div class="blockUI blockMsg blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+Y+';display:none;position:fixed"><div class="ui-widget-header ui-dialog-titlebar blockTitle">'+(c.title||"&nbsp;")+'</div><div class="ui-widget-content ui-dialog-content"></div></div>'}else{if(c.theme){d='<div class="blockUI blockMsg blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+Y+';display:none;position:absolute"><div class="ui-widget-header ui-dialog-titlebar blockTitle">'+(c.title||"&nbsp;")+'</div><div class="ui-widget-content ui-dialog-content"></div></div>'}else{if(X){d='<div class="blockUI blockMsg blockPage" style="z-index:'+Y+';display:none;position:fixed"></div>'}else{d='<div class="blockUI blockMsg blockElement" style="z-index:'+Y+';display:none;position:absolute"></div>'}}}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("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay' onClick='tb_remove();'></div><div id='TB_window'></div>");$("#TB_overlay").click(tb_remove)}}else{if(document.getElementById("TB_overlay")===null){$("body").append("<div id='TB_overlay' onClick='tb_remove()';></div><div id='TB_window'></div>");$("#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("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");$("#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<TB_TempArray.length)&&(TB_NextHTML===""));TB_Counter++){var F=TB_TempArray[TB_Counter].href.toLowerCase().match(E);if(!(TB_TempArray[TB_Counter].href==B)){if(TB_FoundURL){TB_NextCaption=TB_TempArray[TB_Counter].title;TB_NextURL=TB_TempArray[TB_Counter].href;TB_NextHTML="<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;</a></span>"}else{TB_PrevCaption=TB_TempArray[TB_Counter].title;TB_PrevURL=TB_TempArray[TB_Counter].href;TB_PrevHTML="<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev</a></span>"}}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("<a href='' id='TB_ImageOff' title='Schliessen'><img id='TB_Image' src='"+B+"' width='"+M+"' height='"+K+"' alt='"+I+"'/></a><div id='TB_caption'>"+I+"<div id='TB_secondLine'>"+TB_imageCount+TB_PrevHTML+TB_NextHTML+"</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Schliessen'>Schlie&szlig;en</a> oder Esc-Taste drucken</div>");$("#TB_closeWindowButton").click(tb_remove);if(!(TB_PrevHTML==="")){function P(){if($(document).unbind("click",P)){$(document).unbind("click",P)}$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_PrevCaption,TB_PrevURL,G);return false}$("#TB_prev").click(P)}if(!(TB_NextHTML==="")){function O(){$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");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("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+I+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Schliessen'>Schlie&szlig;en</a> oder Esc-Taste drucken</div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;' > </iframe>")}else{$("#TB_overlay").unbind();$("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;'> </iframe>")}}else{if($("#TB_window").css("display")!="block"){if(D.modal!="true"){$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+I+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>Schlie&szlig;en</a> oder Esc-Taste drucken</div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>")}else{$("#TB_overlay").unbind();$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>")}}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<A.length;C++){var G=A[C].split("=");if(!G||G.length!=2){continue}var B=unescape(G[0]);var F=unescape(G[1]);F=F.replace(/\+/g," ");E[B]=F}return E}function tb_getPageSize(){var C=document.documentElement;var A=window.innerWidth||self.innerWidth||(C&&C.clientWidth)||document.body.clientWidth;var B=window.innerHeight||self.innerHeight||(C&&C.clientHeight)||document.body.clientHeight;arrayPageSize=[A,B];return arrayPageSize}function tb_detectMacXFF(){var A=navigator.userAgent.toLowerCase();if(A.indexOf("mac")!=-1&&A.indexOf("firefox")!=-1){return true}}jQuery.fn.ajaxSubmit=function(options){if(typeof options=="function"){options={success:options}}options=jQuery.extend({url:this.attr("action")||window.location,type:this.attr("method")||"GET"},options||{});var a=this.formToArray(options.semantic);if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===false){return this}var veto={};jQuery.event.trigger("form.submit.validate",[a,this,options,veto]);if(veto.veto){return this}var q=jQuery.param(a);if(options.type.toUpperCase()=="GET"){options.url+=(options.url.indexOf("?")>=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<max;i++){callbacks[i](data,status)}};var files=jQuery("input:file",this).fieldValue();var found=false;for(var j=0;j<files.length;j++){if(files[j]){found=true}}if(options.iframe||found){fileUpload()}else{jQuery.ajax(options)}jQuery.event.trigger("form.submit.notify",[this,options]);return this;function fileUpload(){var form=$form[0];var opts=jQuery.extend({},jQuery.ajaxSettings,options);var id="jqFormIO"+jQuery.fn.ajaxSubmit.counter++;var $io=jQuery('<iframe id="'+id+'" name="'+id+'" />');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;G<I;G++){var C=F[G];var D=C.name;if(!D){continue}if(L&&B.clk&&C.type=="image"){if(!C.disabled&&B.clk==C){K.push({name:D+".x",value:B.clk_x},{name:D+".y",value:B.clk_y})}continue}var M=jQuery.fieldValue(C,true);if(M===null){continue}if(M.constructor==Array){for(var E=0,A=M.length;E<A;E++){K.push({name:D,value:M[E]})}}else{K.push({name:D,value:M})}}if(!L&&B.clk){var H=B.getElementsByTagName("input");for(var G=0,I=H.length;G<I;G++){var J=H[G];var D=J.name;if(D&&!J.disabled&&J.type=="image"&&B.clk==J){K.push({name:D+".x",value:B.clk_x},{name:D+".y",value:B.clk_y})}}}return K};jQuery.fn.formSerialize=function(A){return jQuery.param(this.formToArray(A))};jQuery.fn.fieldSerialize=function(B){var A=[];this.each(function(){var F=this.name;if(!F){return }var D=jQuery.fieldValue(this,B);if(D&&D.constructor==Array){for(var E=0,C=D.length;E<C;E++){A.push({name:F,value:D[E]})}}else{if(D!==null&&typeof D!="undefined"){A.push({name:this.name,value:D})}}});return jQuery.param(A)};jQuery.fn.fieldValue=function(F){for(var E=[],C=0,A=this.length;C<A;C++){var D=this[C];var B=jQuery.fieldValue(D,F);if(B===null||typeof B=="undefined"||(B.constructor==Array&&!B.length)){continue}B.constructor==Array?jQuery.merge(E,B):E.push(B)}return E};jQuery.fieldValue=function(A,G){var C=A.name,L=A.type,M=A.tagName.toLowerCase();if(typeof G=="undefined"){G=true}if(G&&(!C||A.disabled||L=="reset"||L=="button"||(L=="checkbox"||L=="radio")&&!A.checked||(L=="submit"||L=="image")&&A.form&&A.form.clk!=A||M=="select"&&A.selectedIndex==-1)){return null}if(M=="select"){var H=A.selectedIndex;if(H<0){return null}var J=[],B=A.options;var E=(L=="select-one");var I=(E?H+1:B.length);for(var D=(E?H:0);D<I;D++){var F=B[D];if(F.selected){var K=jQuery.browser.msie&&!(F.attributes.value.specified)?F.text:F.value;if(E){return K}J.push(K)}}return J}return A.value};jQuery.fn.clearForm=function(){return this.each(function(){jQuery("input,select,textarea",this).clearFields()})};jQuery.fn.clearFields=jQuery.fn.clearInputs=function(){return this.each(function(){var B=this.type,A=this.tagName.toLowerCase();if(B=="text"||B=="password"||A=="textarea"){this.value=""}else{if(B=="checkbox"||B=="radio"){this.checked=false}else{if(A=="select"){this.selectedIndex=-1}}}})};jQuery.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset()}})};var layersopen=0;$(document).ready(function(){$(".layer_popup").each(function(){var B=$(this).attr("rel");$(this).click(function(){showlayer(B);return false});if($("#"+B).children(".layerheader").length>0){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;i<l;i++){var p=false;if($.metadata&&($($headers[i]).metadata()&&$($headers[i]).metadata().sorter)){p=getParserById($($headers[i]).metadata().sorter)}else{if((table.config.headers[i]&&table.config.headers[i].sorter)){p=getParserById(table.config.headers[i].sorter)}}if(!p){p=detectParserForColumn(table,cells[i])}if(table.config.debug){parsersDebug+="column:"+i+" parser:"+p.id+"\n"}list.push(p)}}if(table.config.debug){log(parsersDebug)}return list}function detectParserForColumn(table,node){var l=parsers.length;for(var i=1;i<l;i++){if(parsers[i].is($.trim(getElementText(table.config,node)),table,node)){return parsers[i]}}return parsers[0]}function getParserById(name){var l=parsers.length;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==name.toLowerCase()){return parsers[i]}}return false}function buildCache(table){if(table.config.debug){var cacheTime=new Date()}var totalRows=(table.tBodies[0]&&table.tBodies[0].rows.length)||0,totalCells=(table.tBodies[0].rows[0]&&table.tBodies[0].rows[0].cells.length)||0,parsers=table.config.parsers,cache={row:[],normalized:[]};for(var i=0;i<totalRows;++i){var c=table.tBodies[0].rows[i],cols=[];cache.row.push($(c));for(var j=0;j<totalCells;++j){cols.push(parsers[j].format(getElementText(table.config,c.cells[j]),table,c.cells[j]))}cols.push(i);cache.normalized.push(cols);cols=null}if(table.config.debug){benchmark("Building cache for "+totalRows+" rows:",cacheTime)}return cache}function getElementText(config,node){if(!node){return""}var t="";if(config.textExtraction=="simple"){if(node.childNodes[0]&&node.childNodes[0].hasChildNodes()){t=node.childNodes[0].innerHTML}else{t=node.innerHTML}}else{if(typeof (config.textExtraction)=="function"){t=config.textExtraction(node)}else{t=$(node).text()}}return t}function appendToTable(table,cache){if(table.config.debug){var appendTime=new Date()}var c=cache,r=c.row,n=c.normalized,totalRows=n.length,checkCell=(n[0].length-1),tableBody=$(table.tBodies[0]),rows=[];for(var i=0;i<totalRows;i++){rows.push(r[n[i][checkCell]]);if(!table.config.appender){var o=r[n[i][checkCell]];var l=o.length;for(var j=0;j<l;j++){tableBody[0].appendChild(o[j])}}}if(table.config.appender){table.config.appender(table,rows)}rows=null;if(table.config.debug){benchmark("Rebuilt table:",appendTime)}applyWidget(table);setTimeout(function(){$(table).trigger("sortEnd")},0)}function buildHeaders(table){if(table.config.debug){var time=new Date()}var meta=($.metadata)?true:false,tableHeadersRows=[];for(var i=0;i<table.tHead.rows.length;i++){tableHeadersRows[i]=0}$tableHeaders=$("thead th",table);$tableHeaders.each(function(index){this.count=0;this.column=index;this.order=formatSortingOrder(table.config.sortInitialOrder);if(checkHeaderMetadata(this)||checkHeaderOptions(table,index)){this.sortDisabled=true}if(!this.sortDisabled){$(this).addClass(table.config.cssHeader)}table.config.headerList[index]=this});if(table.config.debug){benchmark("Built headers:",time);log($tableHeaders)}return $tableHeaders}function checkCellColSpan(table,rows,row){var arr=[],r=table.tHead.rows,c=r[row].cells;for(var i=0;i<c.length;i++){var cell=c[i];if(cell.colSpan>1){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<l;i++){getWidgetById(c[i]).format(table)}}function getWidgetById(name){var l=widgets.length;for(var i=0;i<l;i++){if(widgets[i].id.toLowerCase()==name.toLowerCase()){return widgets[i]}}}function formatSortingOrder(v){if(typeof (v)!="Number"){i=(v.toLowerCase()=="desc")?1:0}else{i=(v==(0||1))?v:0}return i}function isValueInArray(v,a){var l=a.length;for(var i=0;i<l;i++){if(a[i][0]==v){return true}}return false}function setHeadersCss(table,$headers,list,css){$headers.removeClass(css[0]).removeClass(css[1]);var h=[];$headers.each(function(offset){if(!this.sortDisabled){h[this.column]=$(this)}});var l=list.length;for(var i=0;i<l;i++){h[list[i][0]].addClass(css[list[i][1]])}}function fixColumnWidth(table,$headers){var c=table.config;if(c.widthFixed){var colgroup=$("<colgroup>");$("tr:first td",table.tBodies[0]).each(function(){colgroup.append($("<col>").css("width",$(this).width()))});$(table).prepend(colgroup)}}function updateHeaderSortCount(table,sortList){var c=table.config,l=sortList.length;for(var i=0;i<l;i++){var s=sortList[i],o=c.headerList[s[0]];o.count=s[1];o.count++}}function multisort(table,sortList,cache){if(table.config.debug){var sortTime=new Date()}var dynamicExp="var sortWrapper = function(a,b) {",l=sortList.length;for(var i=0;i<l;i++){var c=sortList[i][0];var order=sortList[i][1];var s=(getCachedSortType(table.config.parsers,c)=="text")?((order==0)?"sortText":"sortTextDesc"):((order==0)?"sortNumeric":"sortNumericDesc");var e="e"+i;dynamicExp+="var "+e+" = "+s+"(a["+c+"],b["+c+"]); ";dynamicExp+="if("+e+") { return "+e+"; } ";dynamicExp+="else { "}var orgOrderCol=cache.normalized[0].length-1;dynamicExp+="return a["+orgOrderCol+"]-b["+orgOrderCol+"];";for(var i=0;i<l;i++){dynamicExp+="}; "}dynamicExp+="return 0; ";dynamicExp+="}; ";eval(dynamicExp);cache.normalized.sort(sortWrapper);if(table.config.debug){benchmark("Sorting on "+sortList.toString()+" and dir "+order+" time:",sortTime)}return cache}function sortText(a,b){return((a<b)?-1:((a>b)?1:0))}function sortTextDesc(a,b){return((b<a)?-1:((b>a)?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;j<a.length;j++){if(a[j][0]!=i){config.sortList.push(a[j])}}}config.sortList.push([i,this.order])}else{if(isValueInArray(i,config.sortList)){for(var j=0;j<config.sortList.length;j++){var s=config.sortList[j],o=config.headerList[s[0]];if(s[0]==i){o.count=s[1];o.count++;s[1]=o.count%2}}}else{config.sortList.push([i,this.order])}}setTimeout(function(){setHeadersCss($this[0],$headers,config.sortList,sortCSS);appendToTable($this[0],multisort($this[0],config.sortList,cache))},1);return false}}).mousedown(function(){if(config.cancelSelection){this.onselectstart=function(){return false};return false}});$this.bind("update",function(){this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this)}).bind("sorton",function(e,list){$(this).trigger("sortStart");config.sortList=list;var sortList=config.sortList;updateHeaderSortCount(this,sortList);setHeadersCss(this,$headers,sortList,sortCSS);appendToTable(this,multisort(this,sortList,cache))}).bind("appendCache",function(){appendToTable(this,cache)}).bind("applyWidgetId",function(e,id){getWidgetById(id).format(this)}).bind("applyWidgets",function(){applyWidget(this)});if($.metadata&&($(this).metadata()&&$(this).metadata().sortlist)){config.sortList=$(this).metadata().sortlist}if(config.sortList.length>0){$this.trigger("sorton",[config.sortList])}applyWidget(this)})};this.addParser=function(parser){var l=parsers.length,a=true;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==parser.id.toLowerCase()){a=false}}if(a){parsers.push(parser)}};this.addWidget=function(widget){widgets.push(widget)};this.formatFloat=function(s){var i=parseFloat(s);return(isNaN(i))?0:i};this.formatInt=function(s){var i=parseInt(s);return(isNaN(i))?0:i};this.isDigit=function(s,config){var DECIMAL="\\"+config.decimal;var exp="/(^[+]?0("+DECIMAL+"0+)?$)|(^([-+]?[1-9][0-9]*)$)|(^([-+]?((0?|[1-9][0-9]*)"+DECIMAL+"(0*[1-9][0-9]*)))$)|(^[-+]?[1-9]+[0-9]*"+DECIMAL+"0+$)/";return RegExp(exp).test($.trim(s))};this.clearTableBody=function(table){if($.browser.msie){function empty(){while(this.firstChild){this.removeChild(this.firstChild)}}empty.apply(table.tBodies[0])}else{table.tBodies[0].innerHTML=""}}}});$.fn.extend({tablesorter:$.tablesorter.construct});var ts=$.tablesorter;ts.addParser({id:"text",is:function(s){return true},format:function(s){return $.trim(s.toLowerCase())},type:"text"});ts.addParser({id:"digit",is:function(s,table){var c=table.config;return $.tablesorter.isDigit(s,c)},format:function(s){return $.tablesorter.formatFloat(s)},type:"numeric"});ts.addParser({id:"currency",is:function(s){return/^[£$€?.]/.test(s)},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/[^0-9.]/g),""))},type:"numeric"});ts.addParser({id:"ipAddress",is:function(s){return/^\d{2,3}[\.]\d{2,3}[\.]\d{2,3}[\.]\d{2,3}$/.test(s)},format:function(s){var a=s.split("."),r="",l=a.length;for(var i=0;i<l;i++){var item=a[i];if(item.length==2){r+="0"+item}else{r+=item}}return $.tablesorter.formatFloat(r)},type:"numeric"});ts.addParser({id:"url",is:function(s){return/^(https?|ftp|file):\/\/$/.test(s)},format:function(s){return jQuery.trim(s.replace(new RegExp(/(https?|ftp|file):\/\//),""))},type:"text"});ts.addParser({id:"isoDate",is:function(s){return/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(s)},format:function(s){return $.tablesorter.formatFloat((s!="")?new Date(s.replace(new RegExp(/-/g),"/")).getTime():"0")},type:"numeric"});ts.addParser({id:"percent",is:function(s){return/\%$/.test($.trim(s))},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/%/g),""))},type:"numeric"});ts.addParser({id:"usLongDate",is:function(s){return s.match(new RegExp(/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2}) (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM)))$/))},format:function(s){return $.tablesorter.formatFloat(new Date(s).getTime())},type:"numeric"});ts.addParser({id:"shortDate",is:function(s){return/\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/.test(s)},format:function(s,table){var c=table.config;s=s.replace(/\-/g,"/");if(c.dateFormat=="us"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$1/$2")}else{if(c.dateFormat=="uk"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$2/$1")}else{if(c.dateFormat=="dd/mm/yy"||c.dateFormat=="dd-mm-yy"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/,"$1/$2/$3")}}}return $.tablesorter.formatFloat(new Date(s).getTime())},type:"numeric"});ts.addParser({id:"time",is:function(s){return/^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(am|pm)))$/.test(s)},format:function(s){return $.tablesorter.formatFloat(new Date("2000/01/01 "+s).getTime())},type:"numeric"});ts.addParser({id:"metadata",is:function(s){return false},format:function(s,table,cell){var c=table.config,p=(!c.parserMetadataName)?"sortValue":c.parserMetadataName;return $(cell).metadata()[p]},type:"numeric"});ts.addWidget({id:"zebra",format:function(table){if(table.config.debug){var time=new Date()}$("tr:visible",table.tBodies[0]).filter(":even").removeClass(table.config.widgetZebra.css[1]).addClass(table.config.widgetZebra.css[0]).end().filter(":odd").removeClass(table.config.widgetZebra.css[0]).addClass(table.config.widgetZebra.css[1]);if(table.config.debug){$.tablesorter.benchmark("Applying Zebra widget",time)}}})})(jQuery);(function(A){A.extend({tablesorterPager:new function(){function K(P){if(A(P.cssPageDisplay,P.container).html()=="..."){var L=0;var M=N="";for(L=1;L<=P.totalPages;L++){if(L==(P.page+1)){N="<b>"+L+"</b>"}else{N=L}M=M+'<a href="#'+L+'">'+N+"</a> | "}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="<b>"+N+"</b>"}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<Q;P++){var L=T[P];var N=L.length;for(var O=0;O<N;O++){M[0].appendChild(L[O])}}F(S,M);A(S).trigger("applyWidgets");if(R.page>=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(){if($("#produkts").find("tr").length<200){$.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){C.preventDefault();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(C){C.preventDefault();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")})})}});$("#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};
