function isOpera(){return navigator.userAgent.toLowerCase().indexOf("opera")!=-1}function isIE(){return(document.all&&!isOpera())?true:false}function isIE6(){return(isIE()&&!window.XMLHttpRequest)?true:false}function isIE7(){return(isIE()&&window.XMLHttpRequest)?true:false}function isIE8(){return(isIE()&&navigator.userAgent.toLowerCase().indexOf("msie 8")>-1)}function isMozilla(){return !isIE()&&!isOpera()&&!isWebkit()}function isWebkit(){return navigator.userAgent.toLowerCase().indexOf("webkit")>-1}var vbKeyBack=8;var vbKeyTab=9;var vbKeyReturn=13;var vbKeyShift=16;var vbKeyControl=17;var vbKeyEscape=27;var vbKeySpace=32;var vbKeyPageUp=33;var vbKeyPageDown=34;var vbKeyEnd=35;var vbKeyHome=36;var vbKeyLeft=37;var vbKeyUp=38;var vbKeyRight=39;var vbKeyDown=40;var vbKeyInsert=45;var vbKeyDelete=46;var vbKeyA=65;var vbKeyB=66;var vbKeyC=67;var vbKeyD=68;var vbKeyE=69;var vbKeyF=70;var vbKeyG=71;var vbKeyH=72;var vbKeyI=73;var vbKeyJ=74;var vbKeyK=75;var vbKeyL=76;var vbKeyM=77;var vbKeyN=78;var vbKeyO=79;var vbKeyP=80;var vbKeyQ=81;var vbKeyR=82;var vbKeyS=83;var vbKeyT=84;var vbKeyU=85;var vbKeyV=86;var vbKeyW=87;var vbKeyX=88;var vbKeyY=89;var vbKeyZ=90;var vbKeyF1=112;var vbKeyF2=113;var vbKeyF3=114;var vbKeyF4=115;var vbKeyF5=116;var vbKeyF6=117;var vbKeyF7=118;var vbKeyF8=119;var vbKeyF9=120;var vbKeyF10=121;var vbKeyF11=122;var vbKeyF12=123;var vbKeyNumlock=144;var vbKeyScrolllock=145;var nodeTypes={Element:1,Attribute:2,Text:3,CDATA:4,EntityRef:5,Entity:6,Directive:7,Comment:8,Document:9,DocumentType:10,DocumentFragment:11,Notation:12};function CenterDialogFeatures(G){var A=G;var D=/width( *)=( *)(\d+)/;D.exec(A);var B=RegExp.$3;var D=/height( *)=( *)(\d+)/;D.exec(A);var C=RegExp.$3;if(B&&C&&G.indexOf("left")<0){var F=parseInt((screen.availWidth-B)/2);var E=parseInt((screen.availHeight-C)/2);A+=", left="+F+", top="+E}return A}var params_per_popup=[];function Popup(A,B,C,D,F){if(C==undefined){C="scrollbars=yes, resizable=yes, status=yes"}var I=CenterDialogFeatures(C);var E=F?F.no_reload:false;try{var G=window.open(E?"":A,B,I,D);if(E){if(G.location.href=="about:blank"||!G.location.href){G.location.href=A}try{G.opener=window}catch(H){alert("Popup (1): set-opener-win failed: "+H.description)}}params_per_popup.push({popupwindow:G,params:F});try{G.focus()}catch(H){alert("Popup (2): kann den Focus nicht auf Popup setzen")}return G}catch(H){alert("Popup (3): Kann Popup nicht öffnen: "+H.description+"\nurl="+A+"\nname="+B+"\nfeatures="+I+"\nreplace="+D+"\nno_reload="+E);return null}}function GetPopupParams(){if(window.opener&&window.opener.params_per_popup){for(var A=0;A<window.opener.params_per_popup.length;A++){if(window.opener.params_per_popup[A]["popupwindow"]==window){return window.opener.params_per_popup.splice(A,1)[0]["params"]}}}return null}function FocusNextTab(D,C){if(D.tabIndex){var E=document.getElementsByTagName(C);for(var A=0;A<E.length;A++){var B=E[A];if(B.tabIndex==D.tabIndex+1){B.focus();break}}}}function FlatProps(C){var D="";for(var E in C){try{var A=String(C[E]);if(A.indexOf("function")<0){D+=E+" ("+typeof (C[E])+") = "+A+"\n"}}catch(B){}}alert(D)}function getOffsetParent(C){if(isIE()){if(C.navigator){var F=C.parent;var B=[];var G=F.document.getElementsByTagName("IFRAME");for(var A=0;A<G.length;A++){B.push(G[A])}var E=F.document.getElementsByTagName("FRAME");for(var A=0;A<E.length;A++){B.push(E[A])}for(var A=0;A<B.length;A++){var D=B[A];if(F.frames[A]==C){return D;break}}}if(C.nodeName=="BODY"){return C.parentNode}if(C.nodeName=="HTML"){return C.document.parentWindow}return C.offsetParent}if(isMozilla()||isOpera()){if(C.navigator){return C.frameElement}if(C.nodeName=="BODY"){return C.parentNode}if(C.nodeName=="HTML"){return C.parentNode.defaultView}return C.offsetParent}return null}function getOffsetCoords(B,D){var C=0;var A=0;while(B){if(!isNaN(B.offsetTop)){C=C+B.offsetTop;A=A+B.offsetLeft}B=getOffsetParent(B);if(D&&B.tagName=="HTML"){break}}return{left:A,top:C}}function getCSSRule(D){for(var B=0;B<document.styleSheets.length;
B++){var A=document.styleSheets[B];var E=A.rules||A.cssRules;for(var F=0;F<E.length;F++){var C=E[F];if(C.selectorText==D){return C}}}return null}function getElementById(B,D){if(!D){D=B;B=document;return B.getElementById(D)}if(isIE()){return B.all(D)}if(isMozilla()){var C=B.getElementsByTagName("*");for(var A=0;A<C.length;A++){if(C[A].id==D){return C[A]}}}return null}function gid(A){return document.getElementById(A)}function gtag(A){return document.getElementsByTagName(A)}function innerText(A){if(!A){return null}if(isIE()){return A.innerText}if(isMozilla()){return A.textContent}return null}function setInnerText(B,A){if(isIE()){B.innerText=A}if(isMozilla()){B.textContent=A}}function clearKey(A){if(isIE()){try{A.keyCode=0}catch(B){}}else{A.stopPropagation();A.preventDefault()}}if(isMozilla()||isWebkit()){HTMLElement.prototype.insertAdjacentElement=function(A,B){switch(A.toLowerCase()){case"beforebegin":this.parentNode.insertBefore(B,this);break;case"afterbegin":this.insertBefore(B,this.firstChild);break;case"beforeend":this.appendChild(B);break;case"afterend":if(this.nextSibling){this.parentNode.insertBefore(B,this.nextSibling)}else{this.parentNode.appendChild(B)}break;default:alert("insertAdjacentElement: dont know where to put the node")}};HTMLElement.prototype.insertAdjacentHTML=function(B,D){var C=this.ownerDocument.createRange();C.setStartBefore(this);var A=C.createContextualFragment(D);this.insertAdjacentElement(B,A)};HTMLElement.prototype.insertAdjacentText=function(B,C){var A=document.createTextNode(C);this.insertAdjacentElement(B,A)}}function hex_dump(C){C=String(C);var B="";for(var A=0;A<C.length;A++){B+=" "+String(C.charCodeAt(A))}return B}function SoftReload(A){if(!A){A=window}A.location=A.location}function toggleMoreLess(E,B,A){if(!E||!E.previousSibling||!E.previousSibling.previousSibling){return }var D=E.previousSibling.previousSibling;var C=(!D.style.display);D.style.display=C?"inline":"";E.src=C?A:B}function toggleDisplay(A){if(!A||!A.style){return null}if(A.style.display){A.style.display="";return 1}A.style.display="none";return 0}function ToggleTableDetailIFrame(G,H,C,A,F,K){if(K&&!G.iframe_already_created){var J=document.createElement("iframe");J.style.width="100%";J.style.height="200px";G.appendChild(J);G.iframe_already_created=1}if(G.getElementsByTagName("iframe").length>0){var D=G.getElementsByTagName("iframe")[0];var L=D.parentNode;var I=(L.style.display=="");if(!I){if(A!=D.src){D.src=A}else{if(F){SoftReload(D.contentWindow)}}}L.style.display=I?"none":"";G.style.height=I?H+"px":C+"px"}else{var B=G.parentNode.parentNode.offsetWidth;var E='<br><span style="position: relative; top: 2px; width: 10px; height: 10px">';E+='<iframe frameborder="0" style="position: absolute; overflow: hidden; top: 0px; left: 0px; height: '+(C-H)+"px; width: "+(B-0)+'px" src="'+A+'"></iframe></span>';G.insertAdjacentHTML("BeforeEnd",E);G.style.height=C+"px"}}function inArray(A,C){for(var B in A){if(A[B]==C){return 1}}return 0}function arrayIndexOf(A,C){for(var B in A){if(A[B]==C){return B}}return -1}function addEvent(E,C,D){if(!E){if(window.console){console.info("addEvent raised Error: no target defined!","eventType: ",C,"| functionRef: ",D)}return false}if(!E.attachedEvents){E.attachedEvents=new Object}if(!E.attachedEvents[C]){E.attachedEvents[C]=[]}for(var B=0;B<E.attachedEvents[C].length;B++){if(E.attachedEvents[C][B]==D){return null}}E.attachedEvents[C].push(D);if(E.addEventListener){E.addEventListener(C,D,false)}else{if(E.attachEvent){E.attachEvent("on"+C,function(F){if(F.srcElement){F.target=F.srcElement}F.pageY=window.docEl().scrollTop+F.clientY;F.pageX=window.docEl().scrollLeft+F.clientX;F.stopPropagation=function(){F.cancelBubble=true};F.preventDefault=function(){F.returnValue=false};D.bind(E)(F);F=null;if(!isIE8()){E=null}})}else{var A=E["on"+C];if(A){E["on"+C]=function(F){A(F);D(F)}}else{E["on"+C]=D}}}return null}window.docEl=function(){if(!window.docElSaved){window.docElSaved=(document.compatMode=="BackCompat")?document.body:document.documentElement
}return window.docElSaved};if(isIE()){window.pageXScroll=function(){if(document.documentElement){return document.documentElement.scrollLeft}return document.body.scrollLeft};window.pageYScroll=function(){if(document.documentElement){return document.documentElement.scrollTop}return document.body.scrollTop}}else{window.pageXScroll=function(){return window.pageXOffset};window.pageYScroll=function(){return window.pageYOffset}}if(!document.getElementsByClassName){document.getElementsByClassName=function(F,A){var E=[];if(document.evaluate){var H=document.evaluate(".//*[contains(concat(' ', @class, ' '), ' "+F+" ')]",A||document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(var D=0,G=H.snapshotLength;D<G;D++){E.push(H.snapshotItem(D))}}else{var C=(A||document).getElementsByTagName("*");for(var D=0,G=C.length;D<G;D++){var B=C[D];if((" "+B.className+" ").indexOf(" "+F+" ")>-1){E.push(B)}}}return E}}else{document._getElementsByClassName=document.getElementsByClassName;document.getElementsByClassName=function(B,A){if(A&&A!=document){return A.getElementsByClassName(B)}return document._getElementsByClassName(B)}}function keys(B){var A=[];for(key in B){A.push(key)}return A}function values(B){var A=[];for(key in B){A.push(B[key])}return A}function i_am_a_popup(){return window.parent==window}function submitFormForElement(A){if(!A){return }while(A&&A.tagName.toUpperCase()!="FORM"){A=A.parentNode}if(!A||A.tagName.toUpperCase()!="FORM"){if(window.console){console.warn("submitFormForElement raised Error: Form not found. :(")}return }A.submit()}if(!window.getComputedStyle){function getComputedStyle(B,A){if(B.currentStyle){return B.currentStyle}if(document.defaultView.getComputedStyle){return document.defaultView.getComputedStyle(B,"")}return undef}}String.prototype.trim=function(){return this.replace(/^\s+/,"").replace(/\s+$/,"")};function addCSSclass(C,B){var A;if(!C){return }if(!C.className||C.className==""){C.className=B;return }if(C.className.match("(?:^|\\s)"+B+"(?:\\s|$)")){return }C.className+=" "+B}function removeCSSclass(C,A){if(!C||!C.className||C.className==""){return }var B=C.className;var D=new RegExp("(?:^|\\s)"+A.trim()+"(?=\\s|$)");B=B.replace(D,"").trim();C.className=B}function insideElement(A,B){if(A==B){return false}while(A){if(A==B){return true}A=A.parentNode}return false}function prevent_select(){if(isIE()){window._oldonselectstart=document.body.onselectstart;document.body.onselectstart=function(){return false}}else{if(isOpera()){document.body.onmousedown=function(){return false}}else{addCSSclass(document.body,"selectDeactivated")}}}function allow_select(){if(isIE()){if(window._oldonselectstart){document.body.onselectstart=window._oldonselectstart}else{document.body.onselectstart=null}return }if(isOpera()){document.body.onmousedown=null}removeCSSclass(document.body,"selectDeactivated");return }Function.prototype.bind=function(B){var A=this;return function(){return A.apply(B,arguments)}};Function.prototype.extend=function(C,B){var D=this;var A=function(){D.apply(this,arguments);C.apply(this,arguments)};A.implement(D.prototype);A.implement(B);return A};Function.prototype.implement=function(B){for(var A in B){if(this.prototype[A]){this.prototype["BASE"+A]=this.prototype[A]}this.prototype[A]=B[A]}};deleteElement=function(A){A.attachedEvents="";if(!isIE()){if(A.parentNode){A.parentNode.removeChild(A)}return }var B=document.getElementById("IELeakGarbageBin");if(!B){B=document.createElement("DIV");B.id="IELeakGarbageBin";B.style.display="none";document.body.appendChild(B)}B.appendChild(A);B.innerHTML=""};var serverobjecturl="/serverobject2.asp";function toggleMoreLess(D,C,A){if(!D||!D.previousSibling||!D.previousSibling.previousSibling){return }var B=D.previousSibling.previousSibling;var E=(!B.style.display);B.style.display=(E)?"inline":"";D.src=(E)?A:C}function openBrWindow(D,H,J,G,A,E,F,B){var C=0;var I="";if(J=="email"){if((G=="")||(G=="EMail-Adresse")){C=1;I=I+"Bitte geben Sie Ihre E-Mail-Adresse an!\n"}}if(J=="sms"){if((A=="")||(A=="01xx/")){C=1;
I=I+"Bitte geben Sie Ihre Handynummer an!\n"}}if((H=="price")&&(E=="")){C=1;I=I+"Bitte geben Sie eine Preisgrenze an!\n"}if(C==0){if(H=="price"){if(J=="email"){URL=D+"&EMail="+G+"&Preis="+E}else{URL=D+"&Handy="+A+"&Preis="+E}}else{if(J=="email"){URL=D+"&EMail="+G}else{URL=D+"&Handy="+A}}window.open(URL,F,"toolbar=no,location=no,directories=no,status=0,resizable=no,scrollbars=yes,menubar=no,"+B)}else{alert(I)}}function UpsizePicture(C,B,A){if(C.src.indexOf(A)>=0){C.src=B}else{C.src=A;C.removeAttribute("width");C.removeAttribute("height")}}function BookmarkPage(A,B){if((typeof window.sidebar=="object")&&(typeof window.sidebar.addPanel=="function")){window.sidebar.addPanel(B,A,"")}else{if(document.all&&!window.opera){window.external.AddFavorite(A,B)}}}function contentMenuButtonClick(A){top.document.location.href=A}function design_mode_window_dblclick(F){if(!F){F=event}if(!F){return }var D=F.srcElement||F.target;if(!D){return }var B=new Array();while(D){if(D.getAttribute&&D.getAttribute("template")){B.push({template:D.getAttribute("template"),callerpackage:D.getAttribute("callerpackage")})}D=(D.previousSibling)?D.previousSibling:D.parentNode}var E;var G;var C="";for(var A=0;A<B.length;A++){C+=B[A]["template"]+" : "+B[A]["callerpackage"]+"\n";E=B[A]["callerpackage"];if(B[A]["template"].indexOf("wrapper")<0){G=(G)?G:B[A]["template"]}}alert(C);if(E){var H=E.split("#");openSourceCode(H[0],H[1])}if(G){openSourceCode(G)}}function design_mode_find_anchor(A){while(A){if(A.getAttribute&&A.getAttribute("template")){return A}A=(A.previousSibling)?A.previousSibling:A.parentNode}return null}function design_mode_hover(B){var A=design_mode_find_anchor(B);if(!A){return }B=A;while(B&&B.tagName!="TD"&&B.tagName!="TABLE"&&B.tagName!="DIV"&&B.tagName!="SPAN"){B=(B.previousSibling)?B.previousSibling:B.parentNode}if(!B){return }B.style.border="1px dashed red";B.title=A.getAttribute("template");B.onclick=function(){openSourceCode(A.getAttribute("template"))};B.onmouseout=function(){B.style.border="";B.title="";B.onclick=null}}function design_mode_window_mouseover(B){if(!B){B=event}if(!B){return }var A=B.srcElement||B.target;if(B.shiftKey){design_mode_hover(A)}}function attach_designhandlers(){var A;if(isMozilla()){A=window}if(isIE()){A=window.document}A.ondblclick=design_mode_window_dblclick;A.onmouseover=design_mode_window_mouseover}function window_OnLoad(A){if(window.DoInit){DoInit(A)}if(document.body.getAttribute("design_mode")){attach_designhandlers()}}window.onload=window_OnLoad;addEvent(window,"load",initDisplayBox);function initDisplayBox(){var B=document.forms.darstellungsAuswahl;if(B){darstellungen=B.getElementsByTagName("select");for(var A=0;A<darstellungen.length;A++){addEvent(darstellungen[A],"change",submitWrapperForDarstellung);addEvent(darstellungen[A],"keypress",onEnterSubmit)}}}function submitWrapperForDarstellung(){document.forms.darstellungsAuswahl.submit()}addEvent(window,"load",initNavi);function initNavi(){var D=document.getElementsByName("selectedRootCategory")[0];var C=document.getElementById("headNavi");C=C||document.getElementById("searchNavi");if(!D||!C){return }removeFocus();var B=C.getElementsByTagName("table");for(var A=0;A<B.length;A++){addEvent(B[A],"keyup",keepNaviTabOpen.bind(B[A].tBodies[0]));addEvent(B[A],"click",keepNaviTabOpen.bind(B[A].tBodies[0]))}addEvent(document,"click",closeNaviTabs);addEvent(D,"keypress",onEnterSubmit)}function onEnterSubmit(C){if(!C){C=window.event}var A=C.charCode||C.keyCode;var B=C.srcElement||C.target;if(A!=13){return }while(B&&B.tagName.toUpperCase()!="FORM"){B=B.parentNode}if(B.tagName.toUpperCase()=="FORM"){B.submit()}}function keepNaviTabOpen(A){closeNaviTabs();this.className="staysVisible";this.parentNode.wasActivatedByClick=true}function closeNaviTabs(E){if(E){var C=E.target;while(C){if(C.id&&C.id=="headNavi"){return }if(C.className&&C.className=="optionList"){return }C=C.parentNode}}var D=document.getElementById("headNavi");var B=D.getElementsByTagName("table");if(!D||!B){return }var F;
for(var A=0;(F=B[A])||(A<B.length);A++){F.tBodies[0].className="";F.wasActivatedByClick=false}}function getButton(A){while(A){if(A.tagName&&A.tagName=="table"){return A}A=A.parentNode}return undefined}function removeFocus(){var C=[];var D=[document.getElementById("rubrikInhalt"),document.getElementById("headNavi"),document.getElementById("searchNavi"),document.getElementById("menu"),];for(var B=0;B<D.length;B++){if(!D[B]){continue}C=D[B].getElementsByTagName("a");for(var A=0;A<C.length;A++){addEvent(C[A],"mousedown",function(E){this.focusedByMouse=true});addEvent(C[A],"focus",function(){if(!this.focusedByMouse){return }this.blur()});addEvent(C[A],"mouseup",function(){this.focusedByMouse=false});addEvent(C[A],"mouseout",function(){this.focusedByMouse=false})}}}function rememberScrollBar(){var A=window.pageYOffset||document.documentElement.scrollTop;document.cookie="scrollBarPosition="+A}function resetScrollBar(){var A=getValueFromCookie("scrollBarPosition");if(!A){return }window.scrollTo(0,A)}function getValueFromCookie(A){if(!document.cookie){return }if(document.cookie.match(A+"=([^;.]*)")){return RegExp.$1}return undefined}var fieldLength=0;var initialValue="";addEvent(window,"load",initDenyPasteFields);function initDenyPasteFields(){var A=document.getElementsByTagName("input");for(var B=A.length-1;B>-1;B--){if(A[B].getAttribute("paste")&&A[B].getAttribute("paste")=="deny"){denyPaste(A[B])}}}function denyPaste(A){fieldLength=A.value.length;if(isIE()){addEvent(A,"paste",denyPasteIE);addEvent(A,"drop",denyPasteIE);return }if(isMozilla()||isOpera()){fieldLength=A.value.length;addEvent(A,"click",function(){fieldLength=A.value.length;initialValue=A.value});addEvent(A,"focus",function(){fieldLength=A.value.length;initialValue=A.value});addEvent(A,"dragover",function(){fieldLength=A.value.length;initialValue=A.value});addEvent(A,"dragdrop",denyPasteFF);addEvent(A,"input",denyPasteFF)}}function denyPasteIE(A){A.preventDefault();raisePasteError(A.target);return false}function denyPasteFF(B){el=B.target;var A=el.value.length;if(A-fieldLength>1){raisePasteError(el)}else{fieldLength=A;initialValue=el.value}}function raisePasteError(A){if(!isIE()){A.value=initialValue;fieldLength=initialValue.length}A.focus();alert("Das Einfügen ist für dieses Element deaktiviert.")}addEvent(window,"load",initUSTID);function initUSTID(){trigger=document.getElementsByName("FIRMA");if(!trigger){return }for(var A=0;A<trigger.length;A++){if(trigger[A].getAttribute("toggle")){trigger[A].toggleEl=trigger[A].parentNode;do{trigger[A].toggleEl=trigger[A].toggleEl.nextSibling}while(trigger[A].toggleEl.tagName!="DIV");addEvent(trigger[A],"keyup",makeVisible)}}}function makeVisible(B){if(!B){B=window.event}var A=B.srcElement||B.target;if(A.value.length==0){A.toggleEl.style.display="none";return 0}if(A.toggleEl.style.display!="block"){A.toggleEl.style.display="block"}}addEvent(window,"load",initBestellung);function initBestellung(){initSendOrder();disableConfirmationButton();initHausnummer()}function initHausnummer(){var A=document.getElementById("strasse");if(!A){return }addEvent(A,"blur",function(B){if(this.value.match(/\d/)){return }alert('Bitte vergessen sie nicht, ihre Hausnummer im Feld "Straße und Hausnummer" anzugeben.')})}function disableConfirmationButton(){var A=document.getElementById("confirmationButton");if(!A){return }A.disabled=true}function initSendOrder(){var A=document.getElementById("sendOrderConfirmation");if(!A){return }addEvent(A,"click",toggleSendButtonActive)}function toggleSendButtonActive(B){if(!B){B=window.event}var A=B.srcElement||B.target;if(A.checked){document.getElementById("confirmationButton").disabled=false}else{document.getElementById("confirmationButton").disabled=true}return }addEvent(window,"load",initReloadAfterAdressSelection);function initReloadAfterAdressSelection(A){var B=document.getElementById("deliveryAdressButton");if(!B){return }addEvent(document.getElementsByName("ADRESSNR")[1],"change",function(C){submitFormForElement(this)
});B.parentNode.removeChild(B)}addEvent(window,"load",initResizeCart);function initResizeCart(E){var F=document.getElementById("warenkorb");var A=document.getElementById("corners");if(!F||!A){return }var B=document.getElementsByClassName("ContentInnerFrame",F)[0];B.style.overflow="auto";if(isIE6()){B.style.height=(A.offsetHeight-320)+"px"}else{var C=A.offsetHeight-320;var D=B.offsetHeight+5;B.style.maxHeight=C+"px";if(D<C){B.style.minHeight=D+"px"}}}addEvent(window,"load",initPreventLabelSelection);function initPreventLabelSelection(){if(!isIE()){return }var C=document.getElementsByTagName("label");if(!C.length){return }for(var B,A=0;B=C[A];A++){C[A].onselectstart=_false}}function _false(){return false}addEvent(document,"click",gotoLink);function gotoLink(B){var A=B.target;if(A.tagName.toUpperCase()=="A"){return }while(A){if(A.getAttribute&&A.getAttribute("linkto")){B.preventDefault();self.location.href=A.getAttribute("linkto");return }A=A.parentNode}}addEvent(window,"load",initComparisonTable);var mouseStillPressed=false;var scrollIntervalActive=false;var scrollPoints=[];function initComparisonTable(){var H=document.getElementById("scrollingTable");var F=document.getElementById("attributeTable");var G=document.getElementById("scrollDiv");var C=document.getElementById("bigCart");if(!H||!F||!G||!C){return }if(isMozilla()){C.style.width=(window.innerWidth-60)+"px"}var E=G.scrollWidth-1>G.clientWidth;if(!E){return }equaliseRowHeight(H.tBodies[0].rows,F.tBodies[0].rows);equaliseRowHeight(H.tHead.rows,F.tHead.rows);equaliseRowHeight(H.tFoot.rows,F.tFoot.rows);var A=document.getElementById("pfeilVor");A.direction=1;addEvent(A,"mousedown",keepScrolling);addEvent(A,"mouseout",stopScrolling);addEvent(A,"mouseup",stopScrolling);var I=document.getElementById("pfeilRueckw");I.direction=-1;addEvent(I,"mousedown",keepScrolling);addEvent(I,"mouseout",stopScrolling);addEvent(I,"mouseup",stopScrolling);F.style.display=isIE()?"block":"table";G._pfeilVor=A;G._pfeilRueckw=I;var B=0;var J=G.scrollWidth-G.offsetWidth;for(var D=0;D<H.rows[0].cells.length-2;D++){scrollPoints.push(B);if(B>J){break}B+=H.rows[0].cells[D+1].offsetWidth}scrollPoints.push(J)}function equaliseRowHeight(F,G){var C;var B;for(var E=0;E<F.length;E++){C=G[E].cells[0];B=F[E].cells[0];if(isIE()||isWebkit()){var A=0;var D=0;if(B.parentNode.parentNode.tagName=="TBODY"){A=parseInt(getComputedStyle(B,null).paddingTop,10);D=parseInt(getComputedStyle(B,null).paddingBottom,10)}C.style.height=(B.offsetHeight-A-D)+"px"}else{C.style.height=B.clientHeight+"px"}}}function keepScrolling(A){mouseStillPressed=true;scrollInto(this.direction)}function stopScrolling(A){mouseStillPressed=false}function scrollInto(C){if(!C){return }var D=document.getElementById("scrollDiv");var B=D.scrollLeft;if(C<0){var A=scrollPoints.length-1;while(scrollPoints[A]>=B){A--}}else{var A=0;while(scrollPoints[A]<=B){A++}}scrollElementTo(D,scrollPoints[A],150)}function scrollElementTo(C,B,E){if(!C||B==null||scrollIntervalActive){return }E=E||1000;var F=C.scrollLeft;var D=25;var A=1000/D;var I=(B-F)/((E*D)/1000);var H=I>0?1:-1;scrollIntervalActive=true;var G=setInterval(function(){F+=I;if(F*H>=B*H){C.scrollLeft=B;clearInterval(G);scrollIntervalActive=false;if(C.scrollLeft==scrollPoints[0]){C._pfeilRueckw.style.visibility="hidden"}else{if(C.scrollLeft==scrollPoints[scrollPoints.length-1]){C._pfeilVor.style.visibility="hidden"}else{C._pfeilRueckw.style.visibility="visible";C._pfeilVor.style.visibility="visible"}}if(mouseStillPressed){scrollInto(H)}}else{C.scrollLeft=F}},A)}addEvent(window,"load",initTesteoBox);function initTesteoBox(){var A=document.getElementById("testeoContainer");if(!window.testeo_object||!A){return }if(!window.testeo_object.SCRIPT_WITHOUT_SCRIPTTAG){return }A.innerHTML=testeo_object.SCRIPT_WITHOUT_SCRIPTTAG;var B=getDOMBuilder().SCRIPT({type:"text/javascript"});document.getElementsByTagName("head")[0].appendChild(B);document._ugly_old_write=document.write;document.write=TesteoDocumentWrite;B.src=testeo_object.SCRIPT_SRC
}function showTesteoBox(){var A=document.getElementById("testeoContainer");if(!A){return }A.className=""}function restoreDocumentWrite(){if(!document._ugly_old_write){return }document.write=document._ugly_old_write;document._ugly_old_write=null}function TesteoDocumentWrite(B){var A=document.getElementById("testeoContainer");if(!A){return }A.innerHTML=B+A.innerHTML;showTesteoBox()}addEvent(window,"load",initAddSearchEngine);function initAddSearchEngine(){var A=document.getElementById("addSearchEngineButton");if(!A){return }addEvent(A,"click",function(D){try{var B="";if(location.href.match("^(https?://[^/]*)")){B=RegExp.$1}external.AddSearchProvider(B+"/add_searchengine.xml")}catch(C){alert("Leider unterstützen nur Firefox und Internet Explorer ab der Version 7 dieses Feature.")}D.preventDefault()})}addEvent(window,"load",initLieferbarkeitsPopup);function initLieferbarkeitsPopup(){addEvent(document.body,"click",function(B){if(B.target.parentNode.getAttribute("myType")!="statusImage"){return }var A=getLieferbarkeitenPopup(B.target.parentNode);if(!A){return }A.show()})}function getLieferbarkeitenPopup(G){if(!window._cachedLieferbarkeitsPopup){var C=document.getElementById("lieferbarkeitsTabelle");if(!C){return }var F=getDOMBuilder();var B,A,D,E;B=F.DIV({id:"lieferbarkeitenpopup","class":"dropShadow"},A=F.DIV(D=F.A({"class":"close",href:"#"},"schließen"),E=C.cloneNode(true)));B.style.width=C.clientWidth+"px";A.popup=B;addEvent(A,"click",function(H){this.popup.close();H.preventDefault()});B.show=function(){this.style.display="block"};B.close=function(){this.style.display="none"};window._cachedLieferbarkeitsPopup=B}G.appendChild(window._cachedLieferbarkeitsPopup);return window._cachedLieferbarkeitsPopup}addEvent(window,"load",initAddArtikelPopup);var articleAddedPopup;function initAddArtikelPopup(){if(gid("bigCart")){return }if(window.location.hostname.toLowerCase().indexOf("computerhandlung")==-1){return }addEvent(document.body,"click",showAddArtikelPopup)}function showAddArtikelPopup(D){var C=D.target;var A;while(C&&!A){if(C.tagName&&C.tagName.toUpperCase()=="A"&&C.href&&C.href.match(/addToBasket=(\d+)(?:\D|$)/i)){A=RegExp.$1}else{C=C.parentNode}}if(!A){return }var B=getInitialArticles()||[A];if(articleAddedPopup){articleAddedPopup.close()}articleAddedPopup=new ServerPopup("base::Shop::HTML::Cart->addArtikel",{articlesForAccesories:B,articlesToAdd:[A]},{onopen:function(){updateCart();initAddMultipleArticlesLink()},onclose:function(){articleAddedPopup=null},onerror:function(){window.location.replace(C.href)},e:D});D.preventDefault()}function initAddMultipleArticlesLink(){addEvent(articleAddedPopup,"click",function(A){if(!A.target.href||!A.target.href.match(/#addMultipleArticles$/)){return }sendMultipleArticlesToCart(A)})}function sendMultipleArticlesToCart(B){var C=getChosenAccessories(articleAddedPopup);if(!C.length){alert("Es sind keine Artikel markiert.");return }var A=getInitialArticles()||C;if(articleAddedPopup){articleAddedPopup.close()}articleAddedPopup=new ServerPopup("base::Shop::HTML::Cart->addArtikel",{articlesForAccesories:A,articlesToAdd:C},{onopen:function(){updateCart();initAddMultipleArticlesLink()},onclose:function(){articleAddedPopup=null},onerror:function(){articleAddedPopup.close();alert("Es ist ein Fehler aufgetreten. Die ausgewählten Artikel konnten dem Warenkorb nicht hinzugefügt werden.")},e:B});B.preventDefault()}function getChosenAccessories(D){var A=D.getElementsByTagName("input");var E=[];for(var B,C=0;B=A[C];C++){if(B.type&&B.type=="checkbox"&&B.checked){E.push(B.value)}}return E}function getInitialArticles(){if(!articleAddedPopup){return }var B=articleAddedPopup.getElementsByTagName("b");for(var A,C=0;A=B[C];C++){if(A.getAttribute("data-initial_articles")){return new ServerObject().fromJSON(A.getAttribute("data-initial_articles"))}}}function updateCart(){var B,A;if(B=gid("warenkorb_mainpage")){A="boxes_warenkorb.tpl"}else{if(B=gid("warenkorb")){A="bestellung/boxes_bestellung_warenkorb.tpl"}else{return }}new ServerObject({async:true,ondata:function(D){var F=document.createDocumentFragment();
var E=document.createElement("div");E.innerHTML=D;var C;while(C=E.firstChild){F.appendChild(C)}B.parentNode.insertBefore(F.cloneNode(true),B);B.parentNode.removeChild(B);initResizeCart()},onerror:function(){}}).Method("base::Shop::HTML::Cart->getCart",A)}function closeOrGotoUrl(B,C){if(!B.match(/^http/)&&!B.match(/^\//)){B="/"+B}if(window.location.pathname!=B||!C){window.location.href=B;return }var A;if(A=getContainingPopup(C)){A.close()}}addEvent(window,"load",initAccessoryPager);var pager_cache=[];var current_page=0;var query_pending=0;var pager,back,next,accessories;var current_article;function initAccessoryPager(){pager=gid("accessory_pager");back=gid("accessory_back");next=gid("accessory_next");accessories=gid("accessories");if(!pager||!back||!next||!accessories){return }var A=parseInt(pager.getAttribute("data-has_other_accessories"),10);if(!A){return }pager.style.display="block";back.style.visibility="hidden";current_article=pager.getAttribute("data-artikelnummer");if(!isIE()){accessories.style.minHeight=accessories.offsetHeight+"px"}addEvent(back,"click",function(B){if(query_pending){return }current_page--;fetchPage();B.preventDefault()});addEvent(next,"click",function(B){if(query_pending){return }current_page++;fetchPage();B.preventDefault()})}function fetchPage(){if(current_page<0){current_page=0}if(pager_cache[current_page]){showPage(current_page);return }query_pending=1;new ServerObject({async:true,ondata:cachePage}).Method("base::Shop::HTML::Artikeldetails->pageAccessories",current_article,current_page)}function cachePage(B){query_pending=0;var D=document.createDocumentFragment();var C=document.createElement("div");C.innerHTML=B.box_html;var A;while(A=C.firstChild){D.appendChild(A)}pager_cache[current_page]={dom_fragment:D,has_next_page:B.has_next_page};showPage(current_page)}function showPage(A){var B;while(B=accessories.firstChild){accessories.removeChild(B)}accessories.appendChild(pager_cache[A].dom_fragment.cloneNode(true));if(current_page==0){back.style.visibility="hidden"}else{if(back.style.visibility=="hidden"){back.style.visibility="visible"}}if(!pager_cache[A].has_next_page){next.style.visibility="hidden"}else{if(next.style.visibility=="hidden"){next.style.visibility="visible"}}}function addSessionID(A,B){try{B=B||window.sessionid}catch(D){}if(A.match(/session-id=([0-9A-F])/)){if(!RegExp.$1){throw new Exception("URL contains SessionID, but the SessionID is invalid.")}if(RegExp.$1.length!=32){throw new Exception("URL contains SessionID, but the SessionID has wrong length. ("+RegExp.$1.length+" != 32)")}if(RegExp.$1==sessionid){return }A.replace(RegExp.$1,B);return }var C="?";if(A.match(/[&?]$/)){C=""}else{if(A.indexOf("?")>-1){C="&"}}return A+C+"session-id="+B}addEvent(window,"load",initAllFilters);function initAllFilters(){var F=document.getElementById("filterbox");if(!F){return }var D=document.getElementsByClassName("filtervalues_js",F);if(!D.length){return }for(var C,H=0;C=D[H];H++){var B=C.getElementsByTagName("input");if(B.length<7){continue}var I=document.createElement("a");I.href="javascript:void(0);";I.className="show_all_link";I.appendChild(document.createTextNode("Filterwerte verstecken"));I.div_to_toggle=C;addEvent(I,"click",toggle_filter_values);C.parentNode.appendChild(I);C.initial_height=C.offsetHeight;C.is_extended=1;var G=0;for(var A,E=0;A=B[E];E++){if(!A.checked){continue}G=1;break}if(G){continue}I.close=toggle_filter_values;I.close()}}function toggle_filter_values(){var C=this.div_to_toggle;var B=this;var D={};var A=isIE()?32:28;if(C.is_extended){D.now=C.initial_height;D.end=A;D.next_step=function(){this.now-=15};D.done=function(){return this.now<=this.end};D.set_link_caption=function(){B.removeChild(B.firstChild);B.appendChild(document.createTextNode("Alle anzeigen"))}}else{D.now=A;D.end=C.initial_height;D.next_step=function(){this.now+=15};D.done=function(){return this.now>=this.end};D.set_link_caption=function(){B.removeChild(B.firstChild);B.appendChild(document.createTextNode("Filterwerte verstecken"))
}}C.is_extended=!C.is_extended;var E=setInterval(function(){D.next_step();if(D.done()){clearInterval(E);D.set_link_caption();D.now=D.end}C.style.height=D.now+"px"},25);return false}addEvent(window,"load",initSmoothArticleScroll);function initSmoothArticleScroll(){var C=document.getElementsByClassName("scrollerbox");if(!C.length){return }for(var E,B=0;E=C[B];B++){addEvent(E,"click",scrollArticleSmoothly);var D=document.getElementsByClassName("right_column_content",E);if(!D.length){return }E.scrollbarbox=D[0];var A=E.getElementsByTagName("li");addCSSclass(A[0],"show_indicator");E.scrollbarbox._previously_selected=A[0];E.scrollTop=0}}function scrollArticleSmoothly(F){if(F.target.getAttribute("myType")!="scroller"){return }F.preventDefault();F.stopPropagation();var H=this.scrollbarbox;var D=getDestinationScrollTop(F.target);var C=H.scrollTop;var E=C>D?-1:1;var G=20;var A=F.target.parentNode;removeCSSclass(H._previously_selected,"show_indicator");H._previously_selected=A;addCSSclass(A,"show_indicator");var B=1;clearInterval(H.scrollInterval);H.scrollInterval=setInterval(function(){C+=G*E;if(C<0){H.scrollTop=0;clearInterval(H.scrollInterval)}else{if(C>=H.scrollHeight+H.offsetHeight){H.scrollTop=H.offsetHeight-H.scrollHeight;clearInterval(H.scrollInterval)}else{if(C*E>=D*E){H.scrollTop=D;clearInterval(H.scrollInterval)}else{H.scrollTop=C}}}},25)}function getDestinationScrollTop(B){var D=B.href;if(!D){return 0}if(!D.match(/#([\w_]+)$/)){return }D=RegExp.$1;var C=document.getElementsByName(D);if(!C.length){return 0}if(!isOpera()){return C[0].offsetTop}var A=C[0];while(A&&A.tagName!="DIV"){A=A.nextSibling}return A.offsetTop}addEvent(window,"load",initToggleLastSeenArticles);function initToggleLastSeenArticles(){var A=document.getElementById("last_articles");if(!A){return }addEvent(A,"click",toggleLastSeenArticles);if(!getValueFromCookie("last_seen_article_state")){return }gid("last_articles_big").className="";gid("last_articles_small").className="";gid(getValueFromCookie("last_seen_article_state")).className="hidden"}function toggleLastSeenArticles(C){if(!C.target.getAttribute){return }if(C.target.getAttribute("alt")!="verkleinern"&&C.target.getAttribute("alt")!="vergrößern"){return }var B,A;if(C.target.getAttribute("alt")=="verkleinern"){B="last_articles_big";A="last_articles_small"}else{B="last_articles_small";A="last_articles_big"}document.cookie="last_seen_article_state="+B;gid(B).className="hidden";gid(A).className=""}addEvent(window,"load",function(){var C=gid("druckerhersteller_js");if(!C){return }var A=gid("druckermodelle_js");if(!A){return }var B;if(B=gid("js_hide")){B.style.display="none"}if(B=gid("js_show")){B.style.display="block"}addCSSclass(C,"waiting");addCSSclass(A,"waiting");modellFilterbox=new Filterbox({caption:"Bitte geben Sie hier ihr Druckermodell ein"});herstellerFilterbox=new Filterbox({caption:"Bitte geben Sie hier den Hersteller ein"});addPrinterButton=document.createElement("button");addPrinterButton.appendChild(document.createTextNode("den ausgewählten Drucker meinen Druckern hinzufügen"));addEvent(addPrinterButton,"click",sendPrinter);addEvent(modellFilterbox.filtervaluebox,"dblclick",sendPrinter);addEvent(modellFilterbox.filtervaluebox,"keypress",function(D){if(D.keyCode==vbKeyReturn){sendPrinter()}});window._printer_cache={};addEvent(herstellerFilterbox.filtervaluebox,"change",function(F){modellFilterbox.showBusy();var D=F.target;var E=D.value;if(window._printer_cache[E]){setTimeout(function(){updateModels(window._printer_cache[E])},1);return }new ServerObject({async:true,onerror:function(){updateModels()},ondata:function(G){window._printer_cache[E]=G;updateModels(G)}}).Method("base::Shop::HTML::TinteToner->get_models_by_id",E)});setTimeout(function(){var E=gid("druckerhersteller").getElementsByTagName("a");var F=[];for(var D,G=0;D=E[G];G++){if(!D.getAttribute("herstellerid")){continue}F.push({caption:D.innerText||D.textContent,value:D.getAttribute("herstellerid")})}herstellerFilterbox.addOptions(F);herstellerFilterbox.appendTo(C);
removeCSSclass(C,"waiting");modellFilterbox.appendTo(A);removeCSSclass(A,"waiting");A.appendChild(addPrinterButton)},10)});function updateModels(A){modellFilterbox.deleteAllOptions();if(A&&A.length){modellFilterbox.addOptions(A)}modellFilterbox.hideBusy()}function sendPrinter(){var A=modellFilterbox.filtervaluebox.value;if(!A){alert("Sie haben noch keinen Drucker markiert. Bitte wählen Sie ihren Drucker aus der Druckermodellliste.");return }new ServerObject({async:true,onerror:function(){},ondata:function(F){if(F.popup){var B=new ServerPopup(null,null,{data:F.popup});var D=B.getElementsByTagName("form")[0];addEvent(D,"submit",function(K){K.preventDefault();K.stopPropagation();var L={};for(var I,J=0;I=D.elements[J];J++){L[I.name]=I.value}new ServerObject({async:true,flat_params:true,onerror:function(){},ondata:function(O){if(!O){return }var Q=gid("js_my_printers");Q.innerHTML=O;var N=document.getElementsByClassName("index_list",Q);if(!N.length){return }for(var P,M=0;P=N[M];M++){new TabsInterface(P)}}}).Method("base::Shop::HTML::TinteToner->handle_edit_printer_and_get_my_printers",L);B.close()})}if(F.my_printers){var H=gid("js_my_printers");H.innerHTML=F.my_printers;var E=document.getElementsByClassName("index_list",H);if(!E.length){return }for(var G,C=0;G=E[C];C++){new TabsInterface(G)}}}}).Method("base::Shop::HTML::TinteToner->add_model_by_id",A)}addEvent(window,"load",function(){var D=gid("artikelhersteller_js");if(!D){return }var B=gid("artikelmodelle_js");if(!B){return }var C=gid("js_hide");C.style.display="none";gid("js_show").style.display="block";herstellerFilterbox=new Filterbox({caption:"Bitte geben Sie hier den Hersteller ein.",precaption:"Hersteller:"});artikelFilterbox=new Filterbox({caption:"Bitte geben Sie hier die Artikelbezeichnung ein.",precaption:"Bezeichnung:"});var I=C.getElementsByTagName("a");var J=[];for(var H,E=0;H=I[E];E++){if(!H.getAttribute("herstellerid")){continue}J.push({caption:H.innerText||H.textContent,value:H.getAttribute("herstellerid")})}herstellerFilterbox.addOptions(J);window._supply_cache=[];var F,G={tinte_und_papier:gid("tinte_toner_beides"),papier:gid("tinte_toner_papier"),tinte:gid("tinte_toner_tinte")},A=getValueFromCookie("tinte_toner_display_option");addEvent(herstellerFilterbox.filtervaluebox,"change",F=function(){var K=herstellerFilterbox.filtervaluebox,L=K.value,M=D.getAttribute("specific_model"),N;if(!L){return }artikelFilterbox.showBusy();if(G.tinte_und_papier.checked){N=G.tinte_und_papier.value}else{if(G.papier.checked){N=G.papier.value}else{if(G.tinte.checked){N=G.tinte.value}}}window._supply_cache[L]=window._supply_cache[L]||[];if(window._supply_cache[L][N]){setTimeout(function(){updateSupply(window._supply_cache[L][N])},1);return }new ServerObject({async:true,onerror:function(){updateModels()},ondata:function(O){window._supply_cache[L][N]=O;updateSupply(O)}}).Method("base::Shop::HTML::TinteToner->get_supply_by_manufacturerid",L,M,N)});for(key in G){addEvent(G[key],"click",(function(){F();document.cookie="tinte_toner_display_option="+this}).bind(key))}if(A){G[A].checked="checked"}else{G.tinte_und_papier.checked="checked"}addSupplyButton=document.createElement("button");addSupplyButton.appendChild(document.createTextNode("den ausgewählten Artikel meinem Bestand hinzufügen"));addEvent(addSupplyButton,"click",sendSupply);addEvent(artikelFilterbox.filtervaluebox,"dblclick",sendSupply);addEvent(artikelFilterbox.filtervaluebox,"keypress",function(K){if(K.keyCode==vbKeyReturn){sendSupply()}});herstellerFilterbox.appendTo(D);artikelFilterbox.appendTo(B);B.appendChild(addSupplyButton)});function sendSupply(){var C=artikelFilterbox.filtervaluebox.value;if(!C){alert("Sie haben noch keinen Artikel markiert. Bitte wählen Sie ihren Artikel aus der Artikelliste.");return }var A=window.location.href.replace(/[?&]add_to_stock=\d+/,"");var B=A.indexOf("?")>-1?"&":"?";window.location.href=A+B+"add_to_stock="+C}function updateSupply(A){artikelFilterbox.deleteAllOptions();if(A&&A.length){artikelFilterbox.addOptions(A)
}artikelFilterbox.hideBusy()}addEvent(window,"load",function(){var A=document.getElementById("my_printers_js");if(A){addEvent(A,"click",function(C){if(!C.target){return }if(!C.target.href){return }if(C.target.href.indexOf("deletePrinter")==-1){return }if(C.target.href.indexOf("#")>-1){return }if(!confirm("Wollen Sie den Drucker wirklich löschen?")){C.preventDefault()}})}var B=document.getElementById("edit_storage");if(!B){return }addEvent(B,"click",function(C){if(!C.target){return }if(!C.target.name){return }if(C.target.name.indexOf("delete")==-1){return }if(!confirm("Wollen Sie den Lagerort wirklich löschen?")){C.preventDefault()}})});addEvent(window,"load",function(){if(window.location.href.toLowerCase().indexOf("tempel")>-1){return }var A=gid("searchField");if(A){new SearchSuggestFieldCH(A,{method:"base::Shop::HTML::artikelsuche->getSuggestions",onSelect:function(B,C){B.preventDefault();B.stopPropagation();window.location.href=C.getAttribute("link")}});return }A=gid("normal_search");if(!A){return }new SearchSuggestFieldPE(A,{method:"base::Shop::HTML::artikelsuche->getSuggestions",onSelect:function(B,C){B.preventDefault();B.stopPropagation();window.location.href=C.getAttribute("link")}})});if(isIE8()){addEvent(window,"load",function(){var C=document.getElementsByTagName("wbr");var A=document.createElement("span");A.innerHTML="&zwsp;";for(var D,B=0;D=C[B];B++){D.parentNode.insertBefore(A.cloneNode(true),D)}})}function KTreeStatic(A){A.setAttribute("isaKNode",1);A.style.cursor="default";A.expand=this.expand;A.expandAll=this.expandAll;A.toggleExpand=this.toggleExpand;A.select=this.select;A.reloadChildren=this.reloadChildren;A.getPath=this.getPath;A.getChild=this.getChild;A.getNode=this.getNode;A.getLabel=this.getLabel;A.getParent=this.getParent;A.isExpanded=this.isExpanded;A.GetFirstChildDIV=this.GetFirstChildDIV;A.onclick=this.click;A.selectedLabel=null;A.noLinkToggle=0;return A}KTreeStatic.prototype.click=function(D){if(!D){D=window.event}if(!D){return }var C=D.srcElement||D.target;if(!C){return }var B=(C.tagName!="A"||!this.noLinkToggle);var A=C;while(C&&!C.id){C=C.parentNode}if(!C){return }if(A.tagName=="IMG"&&(A.src.indexOf(".png")>=0)){if(B){this.toggleExpand(C)}}else{if(C.id=="treelabel"){this.select(C);C=C.parentNode;while(C&&!C.id){C=C.parentNode}if(B){this.toggleExpand(C)}}else{this.select(C)}}};KTreeStatic.prototype.getPath=function(A){var B="";while(A){if(A.id&&A.id!="treelabel"&&String(A.id).indexOf("sub_")!=0){B=A.id+"/"+B}A=A.parentNode}return B};KTreeStatic.prototype.getChild=function(C,E,F){if(!E){E=this}if(F>0&&E.className&&E.className.indexOf("ktree")>=0&&E.id&&String(E.id).indexOf("sub_")<0){if(E.id==C){return E}return null}var B=E.childNodes;for(var A=0;A<B.length;A++){var D=this.getChild(C,B[A],F+1);if(D){return D}}return null};KTreeStatic.prototype.getNode=function(D){var C=D.split("/");if(C[0]==this.id){C.shift()}var B=this;for(var A=0;A<C.length&&B;A++){B=this.getChild(C[A],B,0)}return B};KTreeStatic.prototype.getLabel=function(D){if(D.id=="treelabel"){return D}var B=D.childNodes;for(var A=0;A<B.length;A++){var C=this.getLabel(B[A]);if(C){return C}}};KTreeStatic.prototype.getParent=function(A){while(A=A.parentNode){if(A.className&&A.className.indexOf("ktree")>=0){return A}}return null};KTreeStatic.prototype.expand=function(A){this.toggleExpand(A,1)};KTreeStatic.prototype.expandAll=function(A){this.expand(A);while(A=this.getParent(A)){this.expand(A)}};KTreeStatic.prototype.isExpanded=function(){var A=this.GetFirstChildDIV(this);if(!A){return null}return(A.className=="ktree")};KTreeStatic.prototype.GetFirstChildDIV=function(C){if(C.className&&C.className.indexOf("ktree")>=0&&String(C.id).indexOf("sub_")==0){return C}var B=C.childNodes;for(var A=0;A<B.length;A++){var D=this.GetFirstChildDIV(B[A]);if(D){return D}}return null};KTreeStatic.prototype.toggleExpand=function(E,D){var C=E.childNodes;var G;for(var A=0;A<C.length;A++){var B=C[A];if(B.id=="sub_"+E.id){G=B;break}}if(!G){return null}if(D==null){D=(G.className=="ktreec")
}if(D&&this.reloadChildren){this.reloadChildren(E,G)}G.className=(D)?"ktree":"ktreec";var F=E.firstChild;while(F&&(String(F.src).indexOf("plus")<0&&String(F.src).indexOf("minus")<0)){F=F.nextSibling}if(F){F.src=(D)?F.src.replace("plus","minus"):F.src.replace("minus","plus")}return D};KTreeStatic.prototype.reloadChildren=function(A,B){};KTreeStatic.prototype.select=function(A){if(this.selectedLabel){this.selectedLabel.style.color="";this.selectedLabel.style.backgroundColor="";if(this.selectedLabel.firstChild&&this.selectedLabel.firstChild.style){this.selectedLabel.firstChild.style.color=""}}this.selectedLabel=this.getLabel(A);if(this.selectedLabel){this.selectedLabel.style.color="buttonhighlight";this.selectedLabel.style.backgroundColor="highlight";if(this.selectedLabel.firstChild&&this.selectedLabel.firstChild.style){this.selectedLabel.firstChild.style.color="buttonhighlight"}}};function Dump(){var B=[];for(var A=0;A<arguments.length;A++){B.push(arguments[A])}return new ServerObject().Serialize(B)}function SDD(){if(arguments.length>1){var B=[];for(var A=0;A<arguments.length;A++){B.push(arguments[A])}return new ServerObject().toJSON(B)}else{return new ServerObject().toJSON(arguments[0])}}function PDD(){if(arguments.length>1){var B=[];for(var A=0;A<arguments.length;A++){B.push(arguments[A])}var C=new ServerObject().toJSON(B);alert(C);return C}else{var C=new ServerObject().toJSON(arguments[0]);alert(C);return C}}function fromJSON(A){return new ServerObject().fromJSON(A)}function ServerObject(B){this.async=false;this.raise_error=false;this.show_clock=false;this.want_array=false;this.flat_params=false;this.raw_only=false;this.http_method="POST";this.url="serverobject2.asp";this.servermethod="ServerMethod";this.onerror=null;this.ondata=null;this.onreadystatechange=null;this.xmlHTTP=null;for(key in B){this[key]=B[key]}try{if(serverobjecturl){this.url=serverobjecturl}}catch(A){}try{if(sessionid){this.url=this.url+"?session-id="+sessionid}}catch(A){}}ServerObject.prototype.Serialize=function(B){var A=[];function D(E){A.push(E)}function C(E){var I,H,F,G;switch(typeof E){case"object":if(E){if(E instanceof Array){D("[");F=A.length;for(H=0;H<E.length;H+=1){G=E[H];if(typeof G!="undefined"&&typeof G!="function"){if(F<A.length){D(",")}C(G)}}D("]");return }else{if(typeof E.toString!="undefined"){D("{");F=A.length;for(H in E){G=E[H];if(E.hasOwnProperty(H)&&typeof G!="undefined"&&typeof G!="function"){if(F<A.length){D(",")}C(H);D("=>");C(G)}}return D("}")}}}D("undef");return ;case"number":D(isFinite(E)?+E:"undef");return ;case"string":D("'"+E.replace(/'/g,"\\'")+"'");return ;case"boolean":D((E)?1:0);return ;default:D("undef");return }}C(B);return A.join("")};ServerObject.prototype.fromJSON=function(json){return new String(json).length?eval("("+json+")"):""};ServerObject.prototype.toJSON=function(H,E,L){_isString=function(O){return typeof O=="string"||O instanceof String};_isArray=function(O){return O&&O instanceof Array||typeof O=="array"};_escapeString=function(O){return('"'+O.replace(/(["\\])/g,"\\$1")+'"').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r")};_toJsonIndentStr="\t";L=L||"";var K=(E?L+_toJsonIndentStr:"");var I=(E?"\n":"");var M=typeof (H);if(M=="undefined"){return"undefined"}else{if((M=="number")||(M=="boolean")){return H+""}else{if(H===null){return"null"}}}if(_isString(H)){return _escapeString(H)}if(H.nodeType&&H.cloneNode){return""}var A=arguments.callee;var F;if(typeof H.__json__=="function"){F=H.__json__();if(H!==F){return A(F,E,K)}}if(typeof H.json=="function"){F=H.json();if(H!==F){return A(F,E,K)}}if(_isArray(H)){var J=[];for(var G=0;G<H.length;G++){var D=A(H[G],E,K);if(typeof (D)!="string"){D="undefined"}J.push(I+K+D)}return"["+J.join(", ")+I+L+"]"}if(M=="function"){return null}var C=[];for(var N in H){var B;if(typeof (N)=="number"){B='"'+N+'"'}else{if(typeof (N)=="string"){B=_escapeString(N)}else{continue}}D=A(H[N],E,K);if(typeof (D)!="string"){continue}C.push(I+K+B+": "+D)
}return"{"+C.join(", ")+I+L+"}"};ServerObject.prototype.OnError=function(A){if(this.onerror){this.onerror(A,this)}else{if(this.raise_error){throw (new Error(A))}else{alert(A)}}};ServerObject.prototype.HTTPGet=function(A,B){this.url=A;this.raw_only=B;this.http_method="GET";return this.HTTPRequest(null)};ServerObject.prototype.HTTPRequest=function(B){if(window.XMLHttpRequest){this.xmlHTTP=new XMLHttpRequest()}else{try{this.xmlHTTP=new ActiveXObject("Msxml2.XMLHTTP")}catch(C){try{this.xmlHTTP=new ActiveXObject("Microsoft.XMLHTTP")}catch(C){this.OnError("Fehler bei Server-Aufruf: xmlHTTP läßt sich nicht instantiieren!")}}}this.xmlHTTP.open(this.http_method,this.url,this.async);if(this.async){var A=this;this.ShowClock(true);this.xmlHTTP.onreadystatechange=function(){if(A.onreadystatechange){A.onreadystatechange(A.xmlHTTP.readyState,A)}if(A.xmlHTTP.readyState==4||A.xmlHTTP.readyState=="complete"){A.ShowClock(false);A.ProcessResult()}}}this.xmlHTTP.setRequestHeader("Content-Type","text/plain; charset=utf-8");this.xmlHTTP.send(B);if(this.async){return this}return this.ProcessResult()};ServerObject.prototype.ProcessResult=function(){if(this.xmlHTTP.status&&this.xmlHTTP.status!=200){this.OnError("Fehler bei HTTP-Aufruf:\nURL="+this.url+"\nStatus="+this.xmlHTTP.statusText+" ("+this.xmlHTTP.status+")\nHeaders="+this.xmlHTTP.getAllResponseHeaders());return null}var response_text=this.xmlHTTP.responseText;if(this.raw_only){if(this.ondata){this.ondata(response_text,response_text,this)}return response_text}var response_struct;try{eval("response_struct = "+response_text)}catch(e){this.OnError("Fehler bei der Deserialisierung der Serverantwort: "+e.description+" (Serverantwort: "+response_text+")");return null}if(response_struct.ERROR){var errmsg="";if(typeof response_struct.ERROR=="object"){errmsg=Dump(response_struct.ERROR)}else{errmsg=response_struct.ERROR}this.OnError("Fehler in Serveraufruf:\n"+errmsg);return null}var value=response_struct.VALUE;if(this.ondata){this.ondata(value,response_text,this)}return value};ServerObject.prototype.NameArray=function(A,C){var B={REQUEST_METHOD:this.servermethod,METHOD_NAME:A,WANT_ARRAY:this.want_array,FLAT_PARAMS:this.flat_params,PARAMS:C};return this.HTTPRequest(this.Serialize(B))};ServerObject.prototype.MethodArray=function(A){return this.NameArray(A.shift(),A)};ServerObject.prototype.Method=function(){var B=[];for(var A=0;A<arguments.length;A++){B.push(arguments[A])}return this.MethodArray(B)};ServerObject.prototype.ShowClock=function(A){if(!this.show_clock){return }var E="serverobject_waiting_clock";var B="images/wait-anim2.gif";var D={width:56,height:56};var C=gid(E);if(!C){var G=parseInt((document.body.scrollWidth-D.width)/2);var F=parseInt((document.body.scrollHeight-D.height)/2);var C=document.createElement("IMG");C.id=E;C.src=B;document.body.appendChild(C);C.style.position="absolute";C.style.top=F+"px";C.style.left=G+"px";C.style.width=D.width;C.style.height=D.height}C.style.display=A?"":"none"};function Trim(A){return String(A).replace(new RegExp("^ "),"").replace(new RegExp(" $"),"")}function trim(A){return Trim(A)}function StringToFloat(A){var B=parseFloat(String(A).replace(".","").replace(",","."));return(isNaN(B)?"":B)}function FloatToString(A){return(A)?String(parseFloat(A)).replace(",","").replace(".",","):""}function PercentToFloat(A){return StringToFloat(String(A).replace(new RegExp("%$"),""))/100}function FloatToPercent(A){return FloatToString(A*100)+" %"}function StringToInt(A){return parseInt(A)}function FloatToCur(A){return((A||(A==0))&&(A!=""))?String(Math.round(A*100)/100).replace(".",",")+" \u20AC":""}function CurToFloat(A){return StringToFloat(A.replace("\u20AC",""))}function givenull(A){return }function NVL(B,A){if(B==null){return(A)?A:""}return B}function Str2Null(A){if(A==""){return null}return A}function getTime(){var A=new Date();return A.getTime()}function round(A,B){B=(B==null?2:B);return Math.round(A*Math.pow(10,B))/Math.pow(10,B)}function LPAD(C,B,A){C=String(C);while(C.length<A){C=B+C
}return C}function Today(){var A=new Date();return(LPAD(A.getDate(),"0",2)+"."+LPAD(A.getMonth()+1,"0",2)+"."+A.getYear().toString())}function copyAttribute(B,C,A){if(!B||!C||!B.getAttribute(A)){return }C.setAttribute(A,B.getAttribute(A))}String.prototype.trim=function(){return Trim(this)};function getIntValue(el){try{if(typeof (el)=="string"){el=gid(el)}if(!el){throw (new Error("getIntValue: kein Steuerelement angegeben / "+el))}if(!el.getAttribute("ui2intValue")){throw (new Error("Steuerelement '"+el.id+"' hat kein 'ui2intValue' Attribut"))}el.getIntValue=function(){return eval(this.getAttribute("ui2intValue"))};return el.getIntValue()}catch(e){alert("getIntValue: "+(e.message||e));throw (e)}}function setUIValue(el,ui_value){try{if(typeof (el)=="string"){el=gid(el)}if(!el){throw (new Error("setUIValue: kein Steuerelement angegeben"))}var conversion_code=el.getAttribute("int2uiValue");if(!conversion_code){if(el.tagName=="INPUT"&&el.type&&String(el.type).toUpperCase()=="CHECKBOX"){conversion_code="this.checked = (value)"}else{conversion_code="this.value = value"}}el.setUIValue=function(value){eval(conversion_code)};el.setUIValue(ui_value)}catch(e){alert("setUIValue: "+(e.message||e));throw (e)}}function JS2UI_STRING(A){return A}function UI2INT_STRING(A){return A}function INT2UI_STRING(A){return A}function INT2UI_DATE(A){return JS2UI_DATE(INT2JS_DATE(A))}function JS2UI_DATE(A){if(!A){return""}return LPAD(A.getDate(),"0",2)+"."+LPAD(A.getMonth()+1,"0",2)+"."+A.getFullYear()+((A.getHours()!=0||A.getMinutes()!=0||A.getSeconds()!=0)?" "+LPAD(A.getHours(),"0",2)+":"+LPAD(A.getMinutes(),"0",2)+":"+LPAD(A.getSeconds(),"0",2):"")}function JS2INT_DATE(A){if(!A){return""}return(A.getFullYear())+"-"+LPAD(A.getMonth()+1,"0",2)+"-"+LPAD(A.getDate(),"0",2)+" "+LPAD(A.getHours(),"0",2)+":"+LPAD(A.getMinutes(),"0",2)+":"+LPAD(A.getSeconds(),"0",2)}function UI2INT_DATE(B){var A=JS2INT_DATE(UI2JS_DATE(B));return A}function UI2JS_DATE(C){if(!C){return null}function B(E){var D=parseInt(E,10);return(D<30)?D+2000:D+=1900}C=String(C);var A;A=/^(\d{2})(\d{2})(\d{2})$/;if(A.exec(C)){return new Date(B(RegExp.$3),RegExp.$2-1,RegExp.$1)}A=/^(\d{1,2})\.(\d{1,2})\.(\d{2})$/;if(A.exec(C)){return new Date(B(RegExp.$3),RegExp.$2-1,RegExp.$1)}A=/^(\d{1,2})\.(\d{1,2})\.(\d{4})$/;if(A.exec(C)){return new Date(RegExp.$3,RegExp.$2-1,RegExp.$1)}A=/^(\d{1,2})\.(\d{1,2})\.(\d{2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/;if(A.exec(C)){return new Date(B(RegExp.$3),RegExp.$2-1,RegExp.$1,RegExp.$4,RegExp.$5,RegExp.$6)}A=/^(\d{1,2})\.(\d{1,2})\.(\d{4}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/;if(A.exec(C)){return new Date(RegExp.$3,RegExp.$2-1,RegExp.$1,RegExp.$4,RegExp.$5,RegExp.$6)}throw ("Datum '"+C+"' ist ung\u00FCltig");return null}function INT2JS_DATE(B){if(!B){return null}B=String(B);var A;A=/^(\d{4})-(\d{1,2})-(\d{1,2})$/;if(A.exec(B)){return new Date(RegExp.$1,RegExp.$2-1,RegExp.$3)}A=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/;if(A.exec(B)){return new Date(RegExp.$1,RegExp.$2-1,RegExp.$3,RegExp.$4,RegExp.$5,RegExp.$6)}throw ("internes Datum '"+B+"' ist ung\u00FCltig");return null}function UI2INT_INTEGER(D){var B=String(D).replace(",",".");if(!String(B).length){return null}var A=parseInt(B);var C=parseFloat(B);if(isNaN(C)||A!=C){throw ("Wert '"+D+"' ist ung\u00FCltig")}return A}function UI2INT_NUMBER(B){if(B==null){return null}var A=String(B).replace(".","").replace(",",".");if(!String(A).length){return null}A=parseFloat(A);if(isNaN(A)){throw ("Wert '"+B+"' ist keine g\u00FCltige Zahl")}return A}function UI2INT_CURRENCY(B){if(B==null){return null}var A=String(B).replace(".","").replace(",",".").replace("\u20AC","");if(!String(A).length){return null}A=parseFloat(A);if(isNaN(A)){throw ("W\u00E4hrungsangabe '"+B+"' ist ung\u00FCltig")}return A}function INT2UI_CURRENCY(A){return FloatToCur(A)}function UI2INT_BOOLEAN(A){if(!A||(!isNaN(A)&&parseInt(A)==0)){return 0}return -1}function JS2UI_BOOLEAN(A){if(!A||(!isNaN(A)&&parseInt(A)==0)){return 0}return 1}function _serverform_output_out_of_band_infos(F){var B=["debug","info","warn","error","fatal"];
var E="";for(var A=0;A<B.length;A++){var D=B[A];var C=F[D];if(C&&C.length){E+="* "+D+":\n"+C.join("")+"\n\n"}}if(E){alert(E)}}function html_Field_Form(I,F,C,H,E){if(!I){alert("Parameter 'Element' fehlt");return null}if(!F){alert("Parameter 'package_name' fehlt");return null}if(!C){alert("Parameter 'method' fehlt");return null}if(!H){alert("Parameter 'pks' fehlt");return null}if(!E){alert("Parameter 'column_name' fehlt");return null}var J={};J[E]=getIntValue(I);var D=new ServerObject().Method(F+"->ChangeAndWatchData",H,C,H,J);_serverform_output_out_of_band_infos(D);if(D.fatal){return null}var L=D.changes;var B;for(B in L){var A=L[B];var G=A.id;var K=gid(G);if(!K){alert("kann Anzeige von Element '"+B+"' nicht updaten, da kein DOM-Element mit id='"+G+"' im document vorhanden ist");continue}setUIValue(K,A.value_ui)}if(typeof (cbServerDataChanged)=="function"){cbServerDataChanged(D)}return D}function html_Field_FormMulti(A,D,B){if(!A){alert("Parameter 'package_name' fehlt");return null}if(!D){alert("Parameter 'method' fehlt");return null}if(!B){alert("Parameter 'column_values' fehlt");return null}var C=new ServerObject().Method(A+"->ChangeAndWatchData",null,D,B);_serverform_output_out_of_band_infos(C);if(C.fatal){return null}return C}addEvent(window,"load",function(){var A=isIE()?document.body:window;addEvent(A,"mousemove",function(D){if(!window._draggedObject){return }var B=window._draggedObject._offsetLeft||0;var C=window._draggedObject._offsetTop||0;if(D.pageX+B<0){_draggedObject.style.left="0px"}else{if(_draggedObject._firstElement().offsetWidth+D.pageX+B>document.body.clientWidth){_draggedObject.style.left=(document.body.clientWidth-_draggedObject._firstElement().offsetWidth)+"px"}else{_draggedObject.style.left=(D.pageX+B)+"px"}}if(D.pageY+C<0){_draggedObject.style.top="0px"}else{_draggedObject.style.top=(D.pageY+C)+"px"}});addEvent(A,"mouseup",function(B){if(window._draggedObject){window._draggedObject=null}allow_select()})});function getContainingPopup(A){while(A){if(A.className&&A.className=="serverpopup_container"){return A}A=A.parentNode}return null}function ServerPopup(D,C,B){var A=document.createElement("div");A.className="serverpopup_container";if(B.modal){A._modal=B.modal}if(B.onclose){A._onclose=B.onclose}if(B.onopen){A._onopen=B.onopen}if(B.e){A._e={pageX:B.e.pageX,pageY:B.e.pageY}}if(!B.data){new ServerObject({async:true,onerror:B.onerror||function(){},ondata:function(E){A.ondata(E)}}).Method(D,C)}A.ondata=function(G){this.innerHTML=G;var H=this.getElementsByTagName("button");for(var F,E=0;F=H[E];E++){if(F.getAttribute("name")=="closebutton"){break}}if(F){F._popup=this;addEvent(F,"click",function(I){this._popup.close();this._popup=null;I.preventDefault();I.stopPropagation()})}if(this._is_modal()){this._make_modal();this._background.style.display="";if(this._iframeFix){this._iframeFix.style.display=""}this.center()}else{this._position_by_event()}this._make_dragable();if(this._onopen){this._onopen()}F=null};A.center=function(){if(isIE()){var E=(document.documentElement.clientWidth-this._firstElement().offsetWidth)*0.5;var F=(document.documentElement.clientHeight-this._firstElement().offsetHeight)*0.38}else{var E=(window.innerWidth-this._firstElement().offsetWidth)*0.5;var F=(window.innerHeight-this._firstElement().offsetHeight)*0.38}E=parseInt(E,10);F=parseInt(F,10);F+=window.pageYScroll();this.position(E,F)};A.close=function(){this.style.display="none";if(this._is_modal()){this._background.style.display="none";if(this._iframeFix){this._iframeFix.style.display="none"}}if(this._onclose){this._onclose()}this.parentNode.removeChild(this)};A.position=function(F,H){var G=this._firstElement().offsetWidth;var E=this._firstElement().offsetHeight;if(F+G>document.body.clientWidth){F=document.body.clientWidth-G}if(F<0){F=0}if(H<0){H=0}this.style.left=F+"px";this.style.top=H+"px"};A._is_modal=function(){if(this._modal){return true}this._modal=false;var F=this.childNodes;for(var G,E=0;G=F[E];E++){if(G.getAttribute&&G.getAttribute("modal")){this._modal=true;
return true}}return false};A._firstElement=function(){if(this._firstElementCached){return this._firstElementCached}var F=this.childNodes;for(var G,E=0;G=F[E];E++){if(G.nodeType&&G.nodeType==nodeTypes.Element){this._firstElementCached=G;return G}}throw ("Serverpopup is empty.")};A._position_by_event=function(){if(!this._e){return }var E=this._e.pageY;docBody=isIE6()?document.documentElement:document.body;if(E+this._firstElement().offsetHeight>docBody.clientHeight+window.pageYScroll()){E=docBody.clientHeight+window.pageYScroll()-this._firstElement().offsetHeight}this.position(this._e.pageX,E)};A._make_dragable=function(){var E=this.getElementsByTagName("h1")[0];if(!E){return }if(!E.getAttribute("data-dragable")){return }E._popup=this;addEvent(E,"mousedown",function(G){window._draggedObject=this._popup;var F=getOffsetCoords(this._popup,true);window._draggedObject._offsetLeft=F.left-G.pageX;window._draggedObject._offsetTop=F.top-G.pageY;prevent_select()})};A._make_modal=function(){var F=document.getElementById("dark_background");var E=document.getElementById("iframeFix");if(!F){if(isIE6()){E=document.createElement("iframe");E.id="iframeFix";E.style.height=document.body.offsetHeight+"px";document.body.appendChild(E)}F=document.createElement("div");F.id="dark_background";document.body.appendChild(F)}this._background=F;this._iframeFix=E||null};document.body.appendChild(A);if(B.data){A.ondata(B.data)}return A}function changeCSSClass(B,A){if(B){B.className=A;return true}return false}function gotoURI(uri,target){addSessionID(uri);var Frame;switch(target){case"self":Frame=eval("self");break;case"parent":Frame=eval("parent");default:Frame=eval("parent."+target);break}try{Frame.location.href=uri}catch(e){self.location.href=uri}return true}function checkBrowser(B){var A=navigator.appName;if(A=="Microsoft Internet Explorer"){document.getElementById("left_spacer").width="181"}else{document.getElementById("left_spacer").width="198"}}function traverse(D,A){if(D.name==A){return D}var C;for(var B=0;B<D.childNodes.length;B++){if(C=traverse(D.childNodes[B],A)){return C}}}var shop_tooltip;var shop_tooltip_shadow;var shop_tooltip_text;var shop_tooltip_source=null;var shop_tooltip_next_source;var shop_tooltip_active=false;var shop_tooltip_initial_timer;var shop_tooltip_timeout_timer;var shop_tooltip_id="shop_tooltip_div";var shop_tooltip_initial_delay=500;var shop_tooltip_hide_timeout=1000;var shop_tooltip_backgroundColor="#FFFFE1";var shop_tooltip_position={x:0,y:0};var shop_tooltip_client_position={x:0,y:0};var shop_tooltip_shadow_timer;function shop_tooltip_create_tooltip(){shop_tooltip=document.createElement("div");shop_tooltip.id=shop_tooltip_id;shop_tooltip_shadow=document.createElement("div");with(shop_tooltip_shadow.style){backgroundPosition="bottom right";backgroundRepeat="no-repeat";position="absolute";left="0";top="0";zIndex="-1"}if(!isIE6()){shop_tooltip_shadow.style.backgroundImage="url(images/50/ch_hlp_shadow_alpha.png)"}addEvent(shop_tooltip,"mouseover",shop_tooltip_onmouseover);addEvent(shop_tooltip,"mouseout",shop_tooltip_onmouseout);document.body.appendChild(shop_tooltip)}function shop_tooltip_hide(){if(shop_tooltip){shop_tooltip.style.display="none";shop_tooltip_source=null;shop_tooltip_clear_timeout()}}function shop_tooltip_show(){shop_tooltip_clear_timeout();shop_tooltip_source=shop_tooltip_next_source;if(!shop_tooltip){shop_tooltip_create_tooltip()}if(shop_tooltip.style.right){shop_tooltip.style.right=""}if(shop_tooltip.style.bottom){shop_tooltip.style.bottom=""}shop_tooltip.style.left=(shop_tooltip_position.x+8)+"px";shop_tooltip.style.top=(shop_tooltip_position.y+8)+"px";shop_tooltip_text=shop_tooltip_source.getAttribute("shop_tooltip");shop_tooltip_set_text(shop_tooltip_text);shop_tooltip_shadow_timer=setTimeout(shop_tooltip_reposition,100);shop_tooltip.style.display="block";shop_tooltip.style.visibility="hidden"}function shop_tooltip_reposition(){try{var D=shop_tooltip.offsetWidth;var A=shop_tooltip_client_position.x+15+D;var E=window.innerWidth;
if(A>E){shop_tooltip.style.left=(shop_tooltip_position.x-8-D)+"px"}}catch(C){}try{var F=shop_tooltip.offsetHeight;var B=shop_tooltip_client_position.y+15+F;var G=window.innerHeight;if(B>G){shop_tooltip.style.top=(shop_tooltip_position.y-8-F)+"px"}}catch(C){}shop_tooltip_shadow.style.height=(shop_tooltip.clientHeight+6)+"px";shop_tooltip_shadow.style.width=(shop_tooltip.clientWidth+6)+"px";shop_tooltip.appendChild(shop_tooltip_shadow);shop_tooltip.style.visibility="visible"}function shop_tooltip_start_timeout(){shop_tooltip_clear_timeout();shop_tooltip_clear_initial_delay();shop_tooltip_timeout_timer=window.setTimeout("shop_tooltip_hide()",shop_tooltip_hide_timeout)}function shop_tooltip_clear_timeout(){if(shop_tooltip_timeout_timer){window.clearTimeout(shop_tooltip_timeout_timer);shop_tooltip_timeout_timer=null}}function shop_tooltip_start_initial_delay(){shop_tooltip_clear_initial_delay();shop_tooltip_initial_timer=window.setTimeout("shop_tooltip_show()",shop_tooltip_initial_delay)}function shop_tooltip_clear_initial_delay(){if(shop_tooltip_initial_timer){window.clearTimeout(shop_tooltip_initial_timer);shop_tooltip_initial_timer=null}if(shop_tooltip_shadow_timer){clearTimeout(shop_tooltip_shadow_timer);shop_tooltip_shadow_timer=null}}function shop_tooltip_onmouseover(){shop_tooltip_clear_timeout();shop_tooltip_active=true}function shop_tooltip_onmouseout(){shop_tooltip_start_timeout();shop_tooltip_active=false}function shop_tooltip_set_text(text){if(String(text).indexOf("js:")==0){text=text.substring(3);text=eval(text)}if(String(text).indexOf("so:")==0){var method=text.substr(3);var params;var re=/([\w:\->]*)\((.*)\)$/;if(re.exec(method)){method=RegExp.$1;params=eval("params = "+RegExp.$2)}text=new ServerObject().Method(method,params)}shop_tooltip.innerHTML=text}addEvent(document,"mouseover",function(C){if(shop_tooltip_active){return }if(!C){return }var B=C.target;if(!B||!B.getAttribute||!B.style){return }if(!B.title&&!B.getAttribute("shop_tooltip")){return }if(!B.getAttribute("shop_tooltip")){var A=B.title||B.getAttribute("title");if(A){B.title="";B.setAttribute("shop_tooltip",A);B.shop_tooltip=A}}if(!B.mouseOutExists){addEvent(B,"mouseout",shop_tooltip_onmouseout);B.mouseOutExists=1}if(B.getAttribute("shop_tooltip")){shop_tooltip_next_source=B;shop_tooltip_position={x:C.pageX,y:C.pageY};shop_tooltip_client_position={x:C.clientX,y:C.clientY};shop_tooltip_start_initial_delay()}else{if(!shop_tooltip_active){shop_tooltip_start_timeout()}}});addEvent(document,"mouseout",function(B){if(!B){B=window.event}if(!B){return }var A=B.srcElement||B.target;if(!A||!A.getAttribute||!A.style){return }if(!A.title&&!A.getAttribute("shop_tooltip")){return }if(shop_tooltip_source==A){shop_tooltip_clear_initial_delay();shop_tooltip_next_source=null}});var DomBuilder={IE_TRANSLATIONS:{"class":"className","for":"htmlFor"},ieAttrSet:function(A,C,D){var B;if(B=this.IE_TRANSLATIONS[C]){D[B]=A[C]}else{if(C=="style"){D.style.cssText=A[C]}else{if(C.match(/^on/)){D[C]=new Function(A[C])}else{D.setAttribute(C,A[C])}}}},apply:function(D){D=D||{};var B=["p","div","span","strong","em","img","pre","code","h1","h2","h3","h4","h5","h6","ul","ol","li","form","input","textarea","legend","fieldset","select","option","blockquote","cite","br","hr","dd","dl","dt","address","a","button","abbr","acronym","script","link","style","bdo","ins","del","object","param","col","colgroup","optgroup","caption","label","dfn","kbd","samp","small","script","sup","var","table","tr","td","th","thead","tbody","tfoot"];var C,A=0;while(C=B[A++]){D[C.toUpperCase()]=DomBuilder.tagFunc(C)}return D},tagFunc:function(A){return function(){var C=arguments,B,D;C.slice=[].slice;if(C.length>0){if(C[0].nodeName||typeof C[0]=="string"){D=C}else{B=C[0];D=C.slice(1)}}return DomBuilder.elem(A,B,D)}},elem:function(D,A,E){A=A||{};E=E||[];var C=document.createElement((isIE()&&A.name)?"<"+D+" name="+A.name+">":D);for(var B in A){if(typeof A[B]!="function"){if(isIE()){this.ieAttrSet(A,B,C)}else{C.setAttribute(B,A[B])
}}}for(var B=0;B<E.length;B++){if(typeof E[B]=="string"){E[B]=document.createTextNode(E[B])}C.appendChild(E[B])}return C}};window.getDOMBuilder=function(){if(!window._DOMBuilder){window._DOMBuilder=DomBuilder.apply()}return window._DOMBuilder};var Filterbox=function(A){A=A||{};this.options={caption:A.caption||"Hier können Sie Ihre Filterkriterien eingeben",options:A.options||[],selection:A.selection||"single",precaption:A.precaption||""};this.filterfieldObject=new SpeakingInput({description:this.options.caption,color:"red"});this.filterfield=this.filterfieldObject.htmlElement();var C={size:2};if(this.options.selection=="multiple"){C.multiple=true}var B=getDOMBuilder();this.filtervaluebox=B.SELECT(C);this._empty_filtervaluebox=this.filtervaluebox.cloneNode(false);this.filterbox=B.DIV({"class":"filterbox"},B.DIV({"class":"filterfield_container"},this.options.precaption,this.filterfield),this.nothingFound=B.DIV({"class":"filter_nothing_found"},"Es wurde nichts gefunden."),this._filtervaluebox_container=B.DIV({"class":"filtervaluebox_container"},B.IMG({src:"/images/filter.png","class":"filter_image"}),this.filtervaluebox));this._optionlist=[];this.addOptions(this.options.options);addEvent(this.filterfield,"keyup",this.applyFilter.bind(this))};Filterbox.prototype={appendTo:function(A){A.appendChild(this.filterbox);if(isIE7()){this.filtervaluebox.style.width=this.filtervaluebox.offsetWidth+"px"}},applyFilter:function(){if(this.filterfieldObject.getValue().toLowerCase()==this._old_searchterm){return }this._old_searchterm=this.filterfieldObject.getValue().toLowerCase();this.showBusy();if(!this.filterfieldObject.getValue().length){this._showall();this.hideBusy();return }var F=this.filterfieldObject.getValue().toLowerCase().replace(/\s+/g,"");var B=this._optionlist;var A=0;for(var E,D=0;E=B[D];D++){var C=E.captionNormalized;if(C.indexOf(F)>-1){E.show();A++}else{E.hide()}}if(A>0){this.nothingFound.style.display="none"}else{this.nothingFound.style.display="block"}this.hideBusy()},showBusy:function(){addCSSclass(this.filterfield,"waiting_small");addCSSclass(this.filtervaluebox,"waiting");this.filtervaluebox.disabled=true},hideBusy:function(){removeCSSclass(this.filterfield,"waiting_small");removeCSSclass(this.filtervaluebox,"waiting");this.filtervaluebox.disabled=false},_showall:function(){var A=this._optionlist;this.nothingFound.style.display="none";for(var C,B=0;C=A[B];B++){C.show()}},addOptions:function(B){var A=document.createDocumentFragment();var E;for(var D,C=0;D=B[C];C++){E=this._createOption(D);E.appendTo(A)}this.filtervaluebox.appendChild(A)},addOption:function(A){var B=this._createOption(A);B.appendTo(this.filtervaluebox)},_createOption:function(A){var B;if(typeof (A)=="string"){B=new FilterboxOption(A)}else{B=new FilterboxOption(A.caption,A.value)}this._optionlist.push(B);return B},deleteOptions:function(A){for(var C,B=0;C=A[B];B++){this.deleteOption(C)}},deleteOption:function(E){var B=this._optionlist;if(typeof (E)=="string"){for(var D,C=0;D=B[C];C++){var A=D.caption.toLowerCase();var I=D.value.toLowerCase();if(I.indexOf(E.toLowerCase())>-1){D.destroy()}}}else{for(var D,C=0;D=B[C];C++){var G=false;if(E.caption!=undefined){var A=D.caption.toLowerCase();var H=E.caption.toLowerCase();G=A.indexOf(H)>-1}if(!G){return }if(E.value!=undefined){var I=D.value.toLowerCase();var F=E.value.toLowerCase();G=I.indexOf(F)>-1}if(!G){return }D.destroy()}}},deleteAllOptions:function(){this._optionlist=[];var D=this.filtervaluebox.attachedEvents;deleteElement(this.filtervaluebox);this.filtervaluebox=this._empty_filtervaluebox.cloneNode(false);for(eventname in D){var C=D[eventname];for(var B,A=0;B=C[A];A++){addEvent(this.filtervaluebox,eventname,B)}}this._filtervaluebox_container.appendChild(this.filtervaluebox);this.nothingFound.style.display="none";this.filterfieldObject.clear()},trailing_comma:null};var FilterboxOption=function(A,B){this.value=B||A;this.caption=A;this.captionNormalized=A.replace(/\s+/g,"").toLowerCase();this.optionElement=document.createElement("option");
this.optionElement.value=this.value;this.optionElement.appendChild(document.createTextNode(this.caption))};FilterboxOption.prototype={appendTo:function(A){A.appendChild(this.optionElement)},destroy:function(){var A;if(this.optionElement.parentNode){deleteElement(this.optionElement)}if(this._placeholder&&this._placeholder.parentNode){deleteElement(this._placeholder)}this.optionElement=null;this._placeholder=null},show:function(){if(!this._hidden){return }this._hidden=false;this._placeholder.parentNode.replaceChild(this.optionElement,this._placeholder)},hide:function(){if(this._hidden){return }this._hidden=true;this.optionElement.parentNode.replaceChild(this._getPlaceholder(),this.optionElement);this.optionElement.selected=false},isHidden:function(){return this._hidden},isVisible:function(){return !this.isHidden()},_getPlaceholder:function(){if(!this._placeholder){this._placeholder=document.createComment(this.caption)}return this._placeholder},trailing_comma:null};var SpeakingInput=function(A){A=A||{};this.options={color:A.color||"#B4B4B4",description:A.description||""};this.input=document.createElement("input");this.input.type="text";this.showDescription();this.value="";addEvent(this.input,"focus",this.hideDescription.bind(this));addEvent(this.input,"blur",this.showDescription.bind(this));addEvent(this.input,"keyup",this.protocolUserInput.bind(this))};SpeakingInput.prototype={appendTo:function(A){A.appendChild(this.input)},htmlElement:function(){return this.input},hideDescription:function(){if(this.value){return }this.input.style.color="";this.input.value=""},showDescription:function(){if(this.value){return }this.input.style.color=this.options.color;this.input.value=this.options.description},protocolUserInput:function(A){if(A.keyCode==27){this.clear();this.input.blur();return }this.value=this.input.value},clear:function(){this.value="";this.showDescription()},getValue:function(){return this.value},trailing_comma:null};var SuggestField=function(D,B){B=B||{};this.options={method:B.method,minimumCharacters:B.minimumCharacters||3,onSelect:B.onSelect||function(){}};this.input=D;D.setAttribute("autocomplete","off");D.autocomplete="off";var E=document.createElement("span");D.parentNode.insertBefore(E,D);E.appendChild(D);E.style.position="relative";if(isIE()){E.style.width=D.offsetWidth+"px"}var C=getDOMBuilder();this.surface=C.DIV({"class":"dropShadowRelative hidden"},this.container=C.DIV({"class":"shadowContentContainer suggestionDiv"},this.messageArea=C.DIV(),this.scrollArea=C.DIV({"class":"suggestionDivContainer"},C.TABLE(this.suggestionArea=C.TBODY()))));E.appendChild(this.surface);this._hidden=true;var A=isMozilla()?"keypress":"keydown";addEvent(D,A,this.onKeyPress.bind(this));addEvent(D,"keyup",this.onKeyUp.bind(this));addEvent(D,"click",this.onClick.bind(this));addEvent(D,"focus",this.onClick.bind(this));addEvent(this.surface,"mouseover",this.onMouseOver.bind(this));addEvent(this.surface,"click",this.onSurfaceClick.bind(this));addEvent(document.body,"click",this.hideSuggestionsOnBodyClick.bind(this))};SuggestField.prototype={onKeyUp:function(A){if(this._specialKeys(A)){return true}this._handleChangedInput();return true},onKeyPress:function(A){switch(A.keyCode){case vbKeyDown:this.selectNext();break;case vbKeyUp:this.selectPrevious();break}this._scrollToSelected();this.showSuggestions()},onClick:function(A){if(this._enoughInput()){this._sendRequest()}else{if(this._getInput()){this.info("Bitte geben Sie mindestens "+this.options.minimumCharacters+" Zeichen ein.")}else{this.info("Sobald Sie einen Suchbegriff eingeben, werden schon die ersten Resultate angezeigt. So lässt sich Ihr Suchbegriff zielstrebiger eingrenzen.")}}this.showSuggestions()},onSurfaceClick:function(A){if(!this.selectedItem()){return }this.options.onSelect(A,this.selectedItem())},onMouseOver:function(C){var D=C.target;var A=this.surface;while(D.tagName.toUpperCase()!="TR"&&D!=A){D=D.parentNode}if(D==A){var B=this.selectedItem();if(B){this.deselectItem(B)}}else{this.selectItem(D)
}},hideSuggestions:function(){if(this.isHidden()){return }this._hidden=true;this.surface.style.display="none"},showSuggestions:function(){if(this.isVisible()){return }this._hidden=false;this.surface.style.display="block"},isHidden:function(){return this._hidden},isVisible:function(){return !this.isHidden()},hideSuggestionsOnBodyClick:function(A){if(A.target==this.input){return }if(insideElement(A.target,this.surface)){return }this.hideSuggestions()},_sendRequest:function(){if(this._serverobjectOccupied){return }if(!this._inputChanged()){return }this.loading("Daten werden geladen.");this.showSuggestions();this._serverobjectOccupied=true;this._getServerObject().Method(this.options.method,this._getSearchParameters());this._setSentInput()},_getServerObject:function(){if(!this._serverobject){this._serverobject=new ServerObject({async:true,ondata:this._ondata.bind(this),onerror:this._onerror.bind(this)})}return this._serverobject},_ondata:function(A){this._emptySuggestionTable();this._serverobjectOccupied=false;if(!this._enoughInput()){return }if(A.length){this._printSuggestionTable(A);this.clearMessage()}else{this.warn("Es wurden keine passenden Daten gefunden.")}if(this._inputChanged()){this._sendRequest()}},_onerror:function(A){if(window.console){console.log(A)}this._emptySuggestionTable();this._serverobjectOccupied=false;this.alert("Es ist ein Fehler aufgetreten, bitte versuchen sie es später nocheinmal.")},_printSuggestionTable:function(A){throw ("Has to be implemented. (Zu abhängig von den Daten, um eine allgemeingültige Anzeige zu gestalten.")},_emptySuggestionTable:function(){var A=this.suggestionArea.parentNode;A.removeChild(this.suggestionArea);this.suggestionArea=document.createElement("tbody");A.appendChild(this.suggestionArea);this.selectedItem(null)},_handleChangedInput:function(){if(this._enoughInput()){this._sendRequest()}else{this._emptySuggestionTable();this.info("Bitte geben Sie mindestens "+this.options.minimumCharacters+" Zeichen ein.");this._setSentInput()}this.showSuggestions()},message:function(A){this._message(A,"message_small")},confirm:function(A){this._message(A,"confirm_small")},loading:function(A){this._message(A,"loading_small")},info:function(A){this._message(A,"info_small")},warn:function(A){this._message(A,"warn_small")},alert:function(A){this._message(A,"alert_small")},_message:function(C,A){var B=this.messageArea;while(B.firstChild){B.removeChild(B.firstChild)}B.appendChild(document.createTextNode(C));B.className=A||""},clearMessage:function(){this._message("")},_specialKeys:function(A){switch(A.keyCode){case vbKeyUp:return true;break;case vbKeyDown:return true;break;case vbKeyEscape:A.preventDefault();this.hideSuggestions();return true;break;case vbKeyReturn:if(this.selectedItem()){this.options.onSelect(A,this.selectedItem())}return true;break}return false},selectItem:function(A){var B=this.selectedItem();if(B){this.deselectItem(B)}this.selectedItem(A);addCSSclass(A,"jshover")},deselectItem:function(A){this.selectedItem(null);removeCSSclass(A,"jshover")},selectedItem:function(){if(arguments.length){this._selectedItem=arguments[0]}return this._selectedItem},selectNext:function(){var A=this.selectedItem();if(A&&A.nextSibling){this.selectItem(A.nextSibling);return }this.selectItem(this.suggestionArea.firstChild)},selectPrevious:function(){var A=this.selectedItem();if(A&&A.previousSibling){this.selectItem(A.previousSibling);return }this.selectItem(this.suggestionArea.lastChild)},_scrollToSelected:function(){if(!this._hasScrollbar()){return }var C=this.selectedItem();if(!C){return }var B=this.scrollArea;var A=B.clientHeight-C.clientHeight;if(C.offsetTop<B.scrollTop){B.scrollTop=C.offsetTop}if(C.offsetTop>A){if(B.scrollTop<C.offsetTop-A){B.scrollTop=C.offsetTop-A}}},_setSentInput:function(){this.__sentInput=this._getSearchParameters()},_getSentInput:function(){return this.__sentInput},_getSearchParameters:function(){return{input:this._getInput()}},_inputChanged:function(){var A=this._getSentInput();if(!A){return true
}return A.input!=this._getInput()},_getInput:function(){return this.input.value.trim()},_enoughInput:function(){return this._getInput().length>=this.options.minimumCharacters},_hasScrollbar:function(){return this.scrollArea.scrollHeight>this.scrollArea.clientHeight},trailing_comma:null};SearchSuggestFieldCH=SuggestField.extend(function(B,A){this.category=gid("searchCategory");addEvent(this.category,"change",this._handleChangedInput.bind(this));var C=getDOMBuilder();this.caption=C.DIV({"class":"caption"},C.SMALL("*inkl. ges. MwSt. und zzgl. Versandkosten"));this.container.appendChild(this.caption)},{_printSuggestionTable:function(F){var B,D,G;var E=getDOMBuilder();var A=document.createDocumentFragment();for(var H,C=0;H=F[C];C++){B=isIE6()?H.BILD_UI:H.BILD_UI.replace(/\.gif$/,".png");B="/images/"+B;D=H.ARTIKEL_URI;D+="?savePreviousSearch=1";D+="&suchstring="+this._getInput();D+="&az_ergebnisse="+F.length;G=E.TR({link:D},E.TD({"class":"posTL"},E.IMG({src:B})),E.TD(H.BEZEICHNUNG,E.BR(),E.SMALL(H.RUBRIKNAME_SINGULAR)),E.TD({"class":"price nowrap"},(H.PREIS_UI||""),"*"));A.appendChild(G)}this.suggestionArea.appendChild(A)},hideSuggestionsOnBodyClick:function(B){var A=B.target;if(A==this.category){return }if(insideElement(A,this.category)){return }this.BASEhideSuggestionsOnBodyClick(B)},_setSentInput:function(){this.__sentInput=this._getSearchParameters()},_getSentInput:function(){return this.__sentInput},_getSearchParameters:function(){return{input:this._getInput(),category:this.category.value}},_ondata:function(A){this.BASE_ondata(A.data);if(A.message){this.info(A.message)}if(A.data.length){this.caption.style.display="block"}},_emptySuggestionTable:function(){this.caption.style.display="none";this.BASE_emptySuggestionTable()},_inputChanged:function(){var A=this._getSentInput();if(!A){return true}return A.input!=this._getInput()||A.category!=this.category.value},trailing_comma:null});SearchSuggestFieldPE=SuggestField.extend(function(B,A){var C=getDOMBuilder();this.caption=C.DIV({"class":"caption"},C.SMALL("*inkl. ges. MwSt. und zzgl. Versandkosten"));this.container.appendChild(this.caption)},{_printSuggestionTable:function(F){var B,D,G;var E=getDOMBuilder();var A=document.createDocumentFragment();for(var H,C=0;H=F[C];C++){B="/images/"+H.BILD_UI;D=H.ARTIKEL_URI;D+="?savePreviousSearch=1";D+="&suchstring="+this._getInput();D+="&az_ergebnisse="+F.length;G=E.TR({link:D},E.TD({"class":"posTL"},E.IMG({src:B})),E.TD(H.BEZEICHNUNG,E.BR(),E.SMALL(H.RUBRIKNAME_SINGULAR)),E.TD({"class":"price nowrap"},(H.PREIS_UI||""),"*"));A.appendChild(G)}this.suggestionArea.appendChild(A)},_ondata:function(A){this.BASE_ondata(A.data);if(A.message){this.info(A.message)}if(A.data.length){this.caption.style.display="block"}},_emptySuggestionTable:function(){this.caption.style.display="none";this.BASE_emptySuggestionTable()},trailing_comma:null});if(!("console" in window)||!("firebug" in console)){var names=["log","debug","info","warn","error","assert","dir","dirxml","group","groupEnd","time","timeEnd","count","trace","profile","profileEnd"];window.console={};for(var i=0;i<names.length;++i){window.console[names[i]]=function(){}}}addEvent(window,"load",showArrows);var normPics=[];var xlPics=[];var normalToXL={};var currentNormPic=0;var currentXLPic=0;var darkBackground;var divWindow;var bigImage;var pfeilVor;var pfeilRueckw;var lupe;var bild;var pfeilVorXL;var pfeilRueckwXL;var pfeilVorXLro;var pfeilRueckwXLro;var iframeFix;var fade_out_interval;function showArrows(){if(window.item_images&&window.item_images.normal&&window.item_images.xl&&window.item_images.normal_to_xl){normPics=item_images.normal;xlPics=item_images.xl;normalToXL=item_images.normal_to_xl}else{return }bild=document.getElementById("prodBild");lupe=document.getElementById("Lupe");pfeilVor=document.getElementById("pfeilVorwaerts");pfeilRueckw=document.getElementById("pfeilRueckwaerts");productimage_navi=document.getElementById("productimagenavi");allImages=document.getElementById("all_images");if(!bild||!lupe){return 
}setTimeout(cacheImages,10);var A=getCurrentImage();lupe.style.visibility=(A&&normalToXL[A])?"visible":"hidden";if(xlPics.length>0){addEvent(bild,"click",openDivWindow);addEvent(lupe,"click",openDivWindow);if(allImages){addEvent(allImages,"click",delegateOpenDivWindow)}}else{bild.style.cursor="auto"}addEvent(pfeilVor,"click",nextNormImage);addEvent(pfeilRueckw,"click",prevNormImage);if(normPics.length>1){pfeilVor.style.visibility="visible"}productimage_navi.style.display="block"}function delegateOpenDivWindow(B){if(!B.target.tagName){return }if(B.target.tagName.toLowerCase()!="img"){return }if(!B.target.src.match(/(?:\/\/.*?)?(\/.*$)/)){return }var A=RegExp.$1;if(!item_images.im100_to_xl[A]){return }B.preventDefault();openDivWindow(null,item_images.im100_to_xl[A])}function cacheImages(){var A;for(var C,B=0;C=item_images.normal[B];B++){A=document.createElement("img");A.src=C}for(var C,B=0;C=item_images.xl[B];B++){A=document.createElement("img");A.src=C}}function closeDivWindow(){divWindow.style.display="none";darkBackground.style.display="none";if(iframeFix){iframeFix.style.display="none"}}function openDivWindow(D,C){var A=getCurrentImage();if(!A&&!C){return }var B=C||normalToXL[A];if(!B){return }currentXLPic=arrayIndexOf(xlPics,B)-1;if(!(window.divWindow&&divWindow.id)){createDivWindow()}nextXLImage();divWindow.style.display="";darkBackground.style.display="";if(iframeFix){iframeFix.style.display=""}}function createDivWindow(){darkBackground=document.createElement("div");darkBackground.id="dark_background";divWindow=document.createElement("div");divWindow.id="bild_div";divWindow.style.width="610px";divWindow.style.height="600px";if(isIE6()){iframeFix=document.createElement("iframe");iframeFix.id="iframeFix";iframeFix.style.height=document.body.offsetHeight+"px";document.body.appendChild(iframeFix)}var B=document.createElement("img");B.alt="";B.src="images/50/boxes/ch_pic_box-003_background_006.gif";B.style.widht="30px";var C=document.createElement("span");C.style.position="relative";C.style.top="-10px";C.style.left="10px";C.className="fontBoxTitle-003";C.innerHTML="Produktbilder";var E=document.createElement("div");E.id="bild_div_title";E.className="bgOrange";E.style.backgroundImage="url(../images/50/boxes/ch_pic_box-003_background_005.gif)";var A=document.createElement("img");A.alt="";A.src="images/50/icons/ch_ico_kreuz_001_orange.gif";A.className="posAbsT5";A.style.right="5px";addEvent(A,"click",closeDivWindow);pfeilVorXL=document.createElement("img");pfeilVorXL.alt="";pfeilVorXL.src="images/50/icons/ch_ico_small_vorwaerts_001.gif";pfeilVorXL.className="marL5";addEvent(pfeilVorXL,"click",nextXLImage);pfeilRueckwXL=document.createElement("img");pfeilRueckwXL.alt="";pfeilRueckwXL.src="images/50/icons/ch_ico_small_rueckwaerts_001.gif";addEvent(pfeilRueckwXL,"click",prevXLImage);pfeilVorXLro=document.createElement("img");pfeilVorXLro.alt="";pfeilVorXLro.src="images/50/icons/ch_ico_small_vorwaerts_001.gif";pfeilVorXLro.className="posAbsT35";pfeilVorXLro.style.right="7px";addEvent(pfeilVorXLro,"click",nextXLImage);pfeilRueckwXLro=document.createElement("img");pfeilRueckwXLro.alt="";pfeilRueckwXLro.src="images/50/icons/ch_ico_small_rueckwaerts_001.gif";pfeilRueckwXLro.className="posAbsT35";pfeilRueckwXLro.style.right="32px";addEvent(pfeilRueckwXLro,"click",prevXLImage);var D=document.createElement("div");D.className="bigImageContainer";bigImage=document.createElement("img");bigImage.className="padTB10";bigImage.alt="";document.body.appendChild(darkBackground);E.appendChild(B);E.appendChild(C);E.appendChild(A);divWindow.appendChild(E);D.appendChild(bigImage);divWindow.appendChild(D);divWindow.appendChild(pfeilRueckwXL);divWindow.appendChild(pfeilVorXL);divWindow.appendChild(pfeilRueckwXLro);divWindow.appendChild(pfeilVorXLro);document.body.appendChild(divWindow)}function getCurrentImage(){if(document.getElementById("prodBild").src.match(/(?:\/\/.*?)?(\/.*$)/)){return RegExp.$1}return""}function nextXLImage(){if(fade_out_interval){return 
}if(currentXLPic==xlPics.length-1){return }currentXLPic++;showXLImage()}function prevXLImage(){if(fade_out_interval){return }if(currentXLPic==0){return }currentXLPic--;showXLImage()}function showXLImage(){pfeilRueckwXL.style.visibility=currentXLPic==0?"hidden":"visible";pfeilVorXL.style.visibility=currentXLPic==xlPics.length-1?"hidden":"visible";pfeilRueckwXLro.style.visibility=currentXLPic==0?"hidden":"visible";pfeilVorXLro.style.visibility=currentXLPic==xlPics.length-1?"hidden":"visible";fadeOut(bigImage,xlPics[currentXLPic])}function nextNormImage(){if(fade_out_interval){return }if(currentNormPic==normPics.length-1){return }currentNormPic++;showNormImage()}function prevNormImage(){if(fade_out_interval){return }if(currentNormPic==0){return }currentNormPic--;showNormImage()}function showNormImage(){pfeilRueckw.style.visibility=currentNormPic==0?"hidden":"visible";pfeilVor.style.visibility=currentNormPic==normPics.length-1?"hidden":"visible";lupe.style.visibility=(normalToXL[normPics[currentNormPic]])?"visible":"hidden";fadeOut(document.getElementById("prodBild"),normPics[currentNormPic])}function fadeOut(B,A){if(!B||!A){return }fade_img=B.cloneNode(false);B.parentNode.appendChild(fade_img);B.src=A;fade_value=1;fade_speed=0.2;if(isIE()){fade_value*=100;fade_speed*=100}fade_out_interval=setInterval(function(){if(isIE()){fade_img.style.filter="Alpha(opacity="+fade_value+")"}else{fade_img.style.opacity=fade_value}fade_value-=fade_speed;if(fade_value<=0){clearInterval(fade_out_interval);fade_out_interval=null;fade_img.parentNode.removeChild(fade_img)}},50)}addEvent(window,"load",initMultilineSelects);function initMultilineSelects(){var A=document.getElementsByClassName("multiLineSelect");window._multilineSelects=[];var C;for(var D,B=0;D=A[B];B++){C=createMultilineSelect(D);addEvent(C,"click",function(E){C.toggleList(E)});if(isIE()){addEvent(C,"dblclick",function(E){C.toggleList(E)})}window._multilineSelects.push(D)}addEvent(document,"click",function(E){hideAllMultiLineSelects(E)})}function hideAllMultiLineSelects(C){if(C.target.isMultiSelect){return }var D=window._multilineSelects;for(var A,B=0;A=D[B];B++){A.multiSelect.hideList()}}function createMultilineSelect(B){var E=getDOMBuilder();var Q=B.getElementsByTagName("SELECT")[0];var N={};var C="";var F=B.getElementsByTagName("LABEL")[0];var G=F.textContent||F.innerText||F.text;for(var T,P=0;T=Q.options[P];P++){N[T.value]=T.textContent||T.innerText||T.text;if(T.selected){C=T.value}}var M=E.UL({"class":"optionList"});var R=E.DIV({"class":"dropShadow hidden listCanvas"},M);var I=E.BUTTON({type:"button"},G,E.IMG({src:"images/more_small_down.gif"}));var S=E.INPUT({type:"hidden",value:C,name:Q.name});var O;if(isIE6()){O=document.createElement("iframe");O.className="iframeFix"}else{O=E.DIV()}for(var L in N){var A=N[L].split(/\s*—\s*/);var H=E.LI({wert:L});for(var K,P=0;K=A[P];P++){H.appendChild(E.SPAN(K));H.appendChild(E.BR());H.selectButton=I}M.appendChild(H);addEvent(H,"click",function(U){this.selectButton.changeValue(this.getAttribute("wert"))})}I.options=N;I.caption=G;I.selectedValue=C;I.optionList=M;I.listCanvas=R;I.fixFrame=O;I.isMultiSelect=true;I.hiddenValueField=S;if(Q.id){S.id=Q.id}for(var J in Q.attachedEvents){for(var D,P=0;D=Q.attachedEvents[J][P];P++){if(J=="change"){addEvent(S,J,D)}else{addEvent(I,J,D)}}}while(B.firstChild){B.removeChild(B.firstChild)}B.appendChild(I);B.appendChild(O);B.appendChild(R);B.appendChild(S);B.multiSelect=I;M.style.width=I.offsetWidth+"px";I._listIsVisible=false;I.showList=function(){this.listCanvas.style.display="block";this.fixFrame.style.display="block";this._listIsVisible=true};I.hideList=function(){this.listCanvas.style.display="none";this.fixFrame.style.display="none";this._listIsVisible=false};I.toggleList=function(){if(this._listIsVisible){this.hideList()}else{this.showList()}};I.changeValue=function(V){this.selectedValue=V;this.hiddenValueField.value=V;if(isIE()){this.hiddenValueField.fireEvent("onchange")}else{var U=document.createEvent("HTMLEvents");
U.initEvent("change",true,true);this.hiddenValueField.dispatchEvent(U)}};if(isIE6()){O.style.width=I.offsetWidth+"px";I.showList();O.style.height=R.offsetHeight+"px";I.hideList()}return I}addEvent(window,"load",function(){var A=document.getElementsByClassName("index_list");if(!A.length){return }for(var C,B=0;C=A[B];B++){if(C.className.match(/no_tabs/)){continue}new TabsInterface(C,{})}});var TabsInterface=function(A,B){this.options=B;this.container=A;var D=A.childNodes;for(var F,C=0;F=D[C];C++){if(F.tagName&&F.tagName.toUpperCase()=="UL"){this.tabContainer=F}if(F.tagName&&F.tagName.toUpperCase()=="DL"){this.contentContainer=F}}tabs=this.tabContainer.childNodes;for(var E,C=0;E=tabs[C];C++){if(E.tagName&&E.tagName.toUpperCase()=="LI"){this._activeTab=E;break}}addCSSclass(this._activeTab,"active_tab");contentContainers=document.getElementsByClassName("list_item",this.contentContainer);this._activeContent=contentContainers[0];addCSSclass(this._activeContent,"active_content");addCSSclass(A,"tab_interface");addCSSclass(this.tabContainer,"tab_container");addCSSclass(this.contentContainer,"tab_content_container");addEvent(this.tabContainer,"click",this.changeTab.bind(this))};TabsInterface.prototype={changeTab:function(B){var C=B.target;if(!C.tagName){return }if(C.tagName.toUpperCase()!="LI"){if(C.tagName.toUpperCase()!="A"){return true}else{C=C.parentNode}}B.preventDefault();if(!C.correspondigContent){var A=C.getElementsByTagName("a")[0].href.replace(/^.*#/,"");C.correspondigContent=gid(A).nextSibling}this._startTabchangeAnimation();removeCSSclass(this._activeTab,"active_tab");removeCSSclass(this._activeContent,"active_content");this._activeTab=C;this._activeContent=C.correspondigContent;addCSSclass(this._activeTab,"active_tab");addCSSclass(this._activeContent,"active_content")},_startTabchangeAnimation:function(){if(this._animationInterval){clearInterval(this._animationInterval)}if(!this._containerOffset){this._containerOffset=this.contentContainer.clientHeight-this._activeContent.clientHeight}var A=this._activeContent.clientHeight;this.contentContainer.style.height=this.contentContainer.clientHeight+"px";this.contentContainer.style.overflow="hidden";this._animationInterval=setInterval((function(){var C=(A<this._activeContent.clientHeight)?1:-1;var B=20*C+this.contentContainer.clientHeight;if(C==1&&(B>=this._activeContent.clientHeight-this._containerOffset)||C==-1&&(B<=this._activeContent.clientHeight+this._containerOffset)){clearInterval(this._animationInterval);this.contentContainer.style.overflow="";this.contentContainer.style.height="auto"}else{this.contentContainer.style.height=B+"px"}}).bind(this),20)},trailing_comma:null};var Toggle=function(D,B,C){C=C||{};this.options={animation:C.animation==undefined?true:C.animation,duration:C.duration||250,hidden:C.hidden||false,hideOnStart:C.hideOnStart||false};this.master=D;this.slave=B;this.slave_container=document.createElement("div");this.slave_container.style.overflow="hidden";this.slave_container.style.display="block";this.slave.parentNode.insertBefore(this.slave_container,this.slave);this.slave_container.appendChild(this.slave);addCSSclass(this.master,"toggleMaster");addEvent(this.master,"click",this.toggleSlave.bind(this));if(this.options.hidden){var A=this.options.duration;this.options.duration=0;this.hide();this.options.duration=A}else{if(this.options.hideOnStart){this.hide()}}};Toggle.prototype={toggleSlave:function(){this.isHidden()?this.show():this.hide()},show:function(){this._hidden=false;this._animate(1);removeCSSclass(this.master,"closed")},hide:function(){this._hidden=true;this._animate(-1);addCSSclass(this.master,"closed")},_animate:function(F){if(this._animationtimer){clearTimeout(this._animationtimer)}var B=1000/30;var I=Math.ceil(this.options.duration/B);var E=F==1?this.slave.offsetHeight:0;var C=this.slave_container.offsetHeight;var H=E-C;var G=H/I;var A=0;var D=(F==-1)?H*-1:C;this._animationtimer=setInterval((function(){var J=G*++A+D;if(F==1&&J>=E||F==-1&&J<=E){clearInterval(this._animationtimer);
J=E;if(F==1){this.slave_container.style.height="auto";return }}this.slave_container.style.height=Math.floor(J)+"px"}).bind(this),B)},isHidden:function(){return this._hidden},isVisible:function(){return !this.isHidden()},trailing_comma:null};addEvent(window,"load",function(){var C=document.getElementsByClassName("widgetSelectOrNew");if(!C.length){return }for(var B,A=0;B=C[A];A++){new WidgetSelectOrNew(B)}});var WidgetSelectOrNew=function(A,C){C=C||{};this.options={};var B=A.getElementsByTagName("label")[0];this.caption=B.innerText||B.textContent;this.container=A;this.select=A.getElementsByTagName("select")[0];this.inputfield=A.getElementsByTagName("input")[0];this.closebutton=A.getElementsByTagName("img")[0];this.newOption=document.createElement("option");this.newOption.value="";this.newOption.className="widgetSelectOrNewOption";this.newOption.isAdder=1;this.newOption.appendChild(document.createTextNode(this.caption));this.select.appendChild(this.newOption);this._previousSelectedIndex=this.select.selectedIndex;addEvent(this.select,"change",this.selectChanged.bind(this));addEvent(this.inputfield,"keyup",this.inputReceived.bind(this));addEvent(this.closebutton,"click",this.activateSelect.bind(this));addCSSclass(this.container,"widgetSelectOrNewJS")};WidgetSelectOrNew.prototype={selectChanged:function(B){var A=this.select.options[this.select.selectedIndex];if(!A.isAdder){this._previousSelectedIndex=this.select.selectedIndex;return }this.activateInput()},inputReceived:function(A){if(A.keyCode!=vbKeyEscape){return }this.activateSelect()},activateInput:function(){this.showInputfield();this.hideSelect()},activateSelect:function(){this.hideInputfield();this.showSelect();this.select.selectedIndex=this._previousSelectedIndex},hideInputfield:function(){this.inputfield.value="";this.inputfield.style.display="none";this.closebutton.style.display="none"},showInputfield:function(){with(this.inputfield){var boxModelCorrection=0;try{var computedStyle=getComputedStyle(this.inputfield,"");boxModelCorrection=parseInt(computedStyle.paddingLeft);boxModelCorrection+=parseInt(computedStyle.paddingRight)}catch(err){}style.width=(this.select.offsetWidth-boxModelCorrection)+"px";value=this.caption;style.display="inline";focus();select()}this.closebutton.style.display="inline"},hideSelect:function(){this.select.style.display="none"},showSelect:function(){this.select.style.display="block"},trailing_comma:null};function KTreeStatic_50(B){var A=new KTreeStatic(B);A.curSel=null;A.onmouseover=function(D){if(!D){D=window.event}if(!D){return }var C=D.srcElement||D.target;while(C&&(C.tagName!="DIV"||C.id)){C=C.parentNode}if(!C){return }this.mark_selected(C,true)};A.onmouseout=function(D){if(!D){D=window.event}if(!D){return }var C=D.srcElement||D.target;while(C&&(C.tagName!="DIV"||C.id)){C=C.parentNode}if(!C){return }if(C==this.curSel){return }if(C.style.background){this.mark_selected(C,false)}};A.find_image=function(C){var D=function(G){if(G&&G.tagName=="IMG"&&G.src.indexOf("blank")<0){return G}var F;for(var E=0;E<G.childNodes.length;E++){if(F=D(G.childNodes[E])){return F}}return null};return D(C)};A.find_link=function(C){var D=function(G){if(G&&G.tagName=="A"){return G}var F;for(var E=0;E<G.childNodes.length;E++){if(F=D(G.childNodes[E])){return F}}return null};return D(C)};A.super_onclick=A.onclick;A.onclick=function(E){if(!E){E=window.event}if(!E){return }var D=E.srcElement||E.target;var C=D;while(C&&(C.tagName!="DIV"||!C.id)){C=C.parentNode}this.toggleExpand(C);while(D&&(D.tagName!="DIV"||D.id)){D=D.parentNode}if(!D){return }this.select(D);this.click_new(D)};A.super_select=A.select;A.select=function(C){C=C.firstChild;while(C&&(C.tagName!="DIV"||C.id)){C=C.parentNode}if(this.curSel){this.mark_selected(this.curSel,false)}this.curSel=C;this.mark_selected(this.curSel,true)};A.click_new=function(D){var C=this.find_link(D);if(C&&C!=D){open(C.getAttribute("url"),C.target||"RUnten")}};A.mark_selected=function(F,E){if(!F){return }var D=this.find_image(F);var C=this.find_link(F);
if(E){F.style.background="url(images/50/ch_pic_menu-button_002.gif) repeat-y";if(D){D.src=D.src.replace("-active.gif",".gif").replace(".gif","-active.gif")}if(C){C.style.color="yellow"}}else{F.style.background="";if(D){D.src=D.src.replace("-active.gif",".gif")}if(C){C.style.color=""}}};return A}function KTreeStatic_50neu(B){var A=new KTreeStatic(B);A.curSel=null;A.onmouseover=function(D){if(!D){D=window.event}if(!D){return }var C=D.srcElement||D.target;while(C&&(C.tagName!="DIV"||C.id)){C=C.parentNode}if(!C){return }this.mark_selected(C,true)};A.onmouseout=function(D){if(!D){D=window.event}if(!D){return }var C=D.srcElement||D.target;while(C&&(C.tagName!="DIV"||C.id)){C=C.parentNode}if(!C){return }if(C==this.curSel){return }if(C.style.background){this.mark_selected(C,false)}};A.find_image=function(C){var D=function(G){if(G&&G.tagName=="IMG"&&G.src.indexOf("blank")<0){return G}var F;for(var E=0;E<G.childNodes.length;E++){if(F=D(G.childNodes[E])){return F}}return null};return D(C)};A.find_link=function(C){var D=function(G){if(G&&G.tagName=="A"){return G}var F;for(var E=0;E<G.childNodes.length;E++){if(F=D(G.childNodes[E])){return F}}return null};return D(C)};A.super_onclick=A.onclick;A.onclick=function(F){if(!F){F=window.event}if(!F){return }var D=F.srcElement||F.target;var E=D;var C=D;while(C&&(C.tagName!="DIV"||!C.id)){C=C.parentNode}this.toggleExpand(C);while(D&&(D.tagName!="DIV"||D.id)){D=D.parentNode}if(!D){return }this.select(D);this.click_new(E)};A.super_select=A.select;A.select=function(C){C=C.firstChild;while(C&&(C.tagName!="DIV"||C.id)){C=C.parentNode}if(this.curSel){this.mark_selected(this.curSel,false)}this.curSel=C;this.mark_selected(this.curSel,true)};A.click_new=function(D){var C=this.find_link(D);if(C&&C!=D){if(C.target){open(C.href,C.target)}else{location.href=C.href}}};A.mark_selected=function(F,E){if(!F){return }var D=this.find_image(F);var C=this.find_link(F);if(E){F.style.background="url(images/50/ch_pic_menu-button_002.gif) repeat-y";if(D){D.src=D.src.replace("-active.gif",".gif").replace(".gif","-active.gif")}if(C){C.style.color="yellow"}}else{F.style.background="";if(D){D.src=D.src.replace("-active.gif",".gif")}if(C){C.style.color=""}}};return A};