if(!window.SymRealWinOpen){window.SymRealWinOpen=window.open}var itsBasketFlash=0;var itsFlashBasketTimer;var itsParentElement=false;var itsParentClass=false;function doNewEmailSubmit(C){var B=true;var A=doCMF(C.email);if(B&&!A){alert("Bitte geben Sie ein gültige E-Mail-Adresse ein.");if(C.email.focus){C.email.focus()}B=false}if(B&&!(C.password.value==C.passwordconfirm.value)){alert("Bitte geben Sie Ihr Passwort zweimal ein.");if(C.password.focus){C.password.focus()}B=false}return B}function doLoginSubmit(D){var C=true;var A=doCMF(D.email);var B=doCCF(D.email);if(A){D.type.value="1"}if(B){D.type.value="2"}if(C&&!(B||A)){alert("Bitte geben Sie Ihre (uns bekannte) E-Mail-Adresse (ersatzweise den Login-Code aus dem F-Secure-Katalog) ein.");if(D.email.focus){D.email.focus()}C=false}if(C&&!D.password.value.length){alert("Bitte geben Sie Ihr Passwort (ersatzweise Ihre Kunden-Nr.) ein.");if(D.password.focus){D.password.focus()}C=false}if(C&&B){D.lg.value=3;D.secpassword.value=D.password.value;D.action="https://www.edv-buchversand.de/order.php?cnt=order&act=auth";D.nextcnt.value="home"}return C}function doAuthSubmit(D){var C=true;var A=doCMF(D.email);var B=doCCF(D.email);if(A){D.type.value="1"}if(B){D.type.value="2"}if(C&&!(B||A)){alert("Bitte geben Sie Ihre (uns bekannte) E-Mail-Adresse (ersatzweise den Login-Code aus dem F-Secure-Katalog) ein.");if(D.email.focus){D.email.focus()}C=false}if(C&&!(D.lg[0].checked||D.lg[1].checked||D.lg[2].checked)){alert("Ihre Login-Daten sind leider noch unvollständig.\n\nBitte treffen Sie noch eine Auswahl unter Punkt 2.");if(D.email.focus){D.email.focus()}C=false}if(C&&D.lg[2].checked&&!A){alert("Bitte geben Sie ein gültige E-Mail-Adresse ein, um sich neu zu registrieren.");if(D.email.focus){D.email.focus()}C=false}if(C&&D.lg[0].checked&&!D.password.value.length){alert("Bitte geben Sie Ihr Passwort (ersatzweise Ihre Kunden-Nr.) ein.");if(D.password.focus){D.password.focus()}C=false}if(C&&D.lg[1].checked&&!D.secpassword.value.length){alert("Bitte geben Sie Ihr Passwort (ersatzweise Ihre Kunden-Nr.) ein.");if(D.secpassword.focus){D.secpassword.focus()}C=false}if(C&&B&&D.lg[0].checked&&D.password.value.length){D.lg[1].checked=true;D.secpassword.value=D.password.value}return C}function doCF(A){rc=true;if(A.value.length==0){rc=false;if(A.focus){A.focus()}}return rc}function doCCF(A){var B=/(\d\d\d\d\d-\d\d\d\d\d\d)/i;return B.test(A.value)}function doCMF(B){var E=false;var C=false;var A=B.value;if(typeof (RegExp)=="function"){var D=new RegExp("abc");if(D.test("abc")==true){C=true}}if(C==true){aTmp=new RegExp("^([a-zA-Z0-9\\-\\.\\_]+)(\\@)([a-zA-Z0-9\\-\\.]+)(\\.)([a-zA-Z]{2,4})$");E=(aTmp.test(A));if(!E){aTmp2=new RegExp("^([a-zA-Z0-9\\-\\.\\_]+)(\\@)([a-zA-Z0-9\\-\\.]+)(\\.)([a-zA-Z]{2,4})(\\|)([a-zA-Z]{2})(\\-)([a-zA-Z0-9]){6}$");E=(aTmp2.test(A))}}else{E=(A.search("@")>=1&&A.lastIndexOf(".")>A.search("@")&&A.lastIndexOf(".")>=A.length-5)}return E}function doFlashBasket(){}function doFocus(A){if(A&&A.focus&&!A.disabled){A.focus()}}function doOpenWin(C,B,A){if(window.SymRealWinOpen){SymRealWinOpen(C,B,A)}else{window.open(C,B,A)}}function delArtikel(B){var A=document.forms.B1;if(document.getElementById){document.getElementById("b1q"+B).value=0}A.submit()}function swclass(B,A){if(itsPageLoaded&&document.getElementById){document.getElementById(B).className=A}}function getElement(A){var B=false;if(A){if(document.getElementById){B=document.getElementById(A)}else{if(document.all){B=document.all[A]}else{if(document.layers){B=document.layers[A]}}}}return B}function doExplode(C,A,B){rc=new Array(1);aInputString=new String(C);aSeparators=new String(A);aCurrent="";aCount=0;if(aSeparators=="undefined"){aSeparators=" :;"}for(x=0;x<aInputString.length;x++){aChar=aInputString.charAt(x);if(aSeparators.indexOf(aChar)!=-1){if(((B<=0)||(B==false))&&(aCurrent=="")){}else{rc[aCount]=aCurrent;aCount++;aCurrent=""}}else{aCurrent+=aChar}}if((!(B<=0)&&(B!=false))||(aCurrent!="")){rc[aCount]=aCurrent}return rc}if(typeof String.prototype.trim=="undefined"){String.prototype.trim=function(){var A=this.replace(/^\s*/,"");return A.replace(/\s*$/,"")}}if(typeof Array.prototype.indexOf=="undefined"){Array.prototype.indexOf=function(B){for(var A=0;A<this.length;A++){if(this[A]===B){return A}}return -1}}if(typeof Array.prototype.contains=="undefined"){Array.prototype.contains=function(B){for(var A=0;A<this.length;A++){if(this[A]===B){return true}}return false}}if(typeof String.prototype.substrCount=="undefined"){String.prototype.substrCount=function(A){return this.split(A).length-1}}if(typeof Array.prototype.getLast=="undefined"){Array.prototype.getLast=function(){return this[this.length-1]}}if(!Array.prototype.pop){Array.prototype.pop=function(){var A;if(this.length){A=this[this.length-1];this.length-=1}return A}}if(!Array.prototype.push){Array.prototype.push=function(){for(var A=0;A<arguments.length;++A){this[this.length]=arguments[A]}return this.length}}if(!Array.prototype.shift){Array.prototype.shift=function(){var B;if(this.length){B=this[0];for(var A=0;A<this.length-1;++A){this[A]=this[A+1]}this.length-=1}return B}}if(!Array.prototype.unshift){Array.prototype.unshift=function(){if(arguments.length){var B,A=arguments.length;for(B=this.length+A-1;B>=A;--B){this[B]=this[B-A]}for(B=0;B<A;++B){this[B]=arguments[B]}}return this.length}}if(!Array.prototype.splice){Array.prototype.splice=function(A,C){var D=[],E=[],B;for(B=2;B<arguments.length;++B){D.push(arguments[B])}for(B=A;(B<A+C)&&(B<this.length);++B){E.push(this[B])}for(B=A+C;B<this.length;++B){this[B-C]=this[B]}this.length-=E.length;for(B=this.length+D.length-1;B>=A+D.length;--B){this[B]=this[B-D.length]}for(B=0;B<D.length;++B){this[A+B]=D[B]}return E}}function getWindowSize(C){if(!C){C=window}var A=new Object();if(typeof C.innerWidth!="undefined"){A.width=C.innerWidth;A.height=C.innerHeight}else{var B=getBody(C);A.width=parseInt(B.clientWidth);A.height=parseInt(B.clientHeight)}return A}function getBody(A){return(A.document.compatMode&&A.document.compatMode=="CSS1Compat")?A.document.documentElement:A.document.body||null}function ClickMenu(id){this.box1Hover=true;this.box2Hover=true;this.highlightActive=false;this.init=function(){if(!document.getElementById(this.id)){return }this.parse(document.getElementById(this.id).childNodes,this.tree,this.id);this.load();if(window.attachEvent){window.attachEvent("onunload",function(e){self.save()})}else{if(window.addEventListener){window.addEventListener("unload",function(e){self.save()},false)}}};this.parse=function(nodes,tree,id){for(var i=0;i<nodes.length;i++){if(nodes[i].nodeType!=1){continue}if(nodes[i].className){if("box1"==nodes[i].className.substr(0,4)){nodes[i].id=id+"-"+tree.length;tree[tree.length]=new Array();eval('nodes[i].onmouseover = function() { self.box1over("'+nodes[i].id+'"); }');eval('nodes[i].onmouseout = function() { self.box1out("'+nodes[i].id+'"); }');eval('nodes[i].onclick = function() { self.box1click("'+nodes[i].id+'"); }')}if("depthsec1"==nodes[i].className){id=id+"-"+(tree.length-1);nodes[i].id=id+"-depthsec1";tree=tree[tree.length-1]}if("box2"==nodes[i].className.substr(0,4)){nodes[i].id=id+"-"+tree.length;tree[tree.length]=new Array();eval('nodes[i].onmouseover = function() { self.box2over("'+nodes[i].id+'", "'+nodes[i].className+'"); }');eval('nodes[i].onmouseout = function() { self.box2out("'+nodes[i].id+'", "'+nodes[i].className+'"); }')}}if(this.highlightActive&&nodes[i].tagName&&nodes[i].tagName=="A"){if(document.location.href==nodes[i].href){nodes[i].className=(nodes[i].className?" active":"active")}}if(nodes[i].childNodes){this.parse(nodes[i].childNodes,tree,id)}}};this.box1over=function(id){if(!this.box1Hover){return }if(!document.getElementById(id)){return }document.getElementById(id).className=(this.id_openbox==id?"box1-open-hover":"box1-hover")};this.box1out=function(id){if(!this.box1Hover){return }if(!document.getElementById(id)){return }document.getElementById(id).className=(this.id_openbox==id?"box1-open":"box1")};this.box1click=function(id){if(!document.getElementById(id)){return }var id_openbox=this.id_openbox;if(this.id_openbox){if(!document.getElementById(id+"-depthsec1")){return }this.hide();if(id_openbox==id){if(this.box1hover){document.getElementById(id_openbox).className="box1-hover"}else{document.getElementById(id_openbox).className="box1"}}else{document.getElementById(id_openbox).className="box1"}}if(id_openbox!=id){this.show(id);var className=document.getElementById(id).className;if("box1-hover"==className){document.getElementById(id).className="box1-open-hover"}if("box1"==className){document.getElementById(id).className="box1-open"}}};this.box2over=function(id,className){if(!this.box2Hover){return }if(!document.getElementById(id)){return }document.getElementById(id).className=className+"-hover";if(/item\d-active/.test(itsParentElement.className)&&!/item\d-active-parent/.test(itsParentElement.className)){itsParentClass=itsParentElement.className;itsParentElement.className=itsParentElement.className+"-parent"}};this.box2out=function(id,className){if(!this.box2Hover){return }if(!document.getElementById(id)){return }document.getElementById(id).className=className};this.show=function(id){if(document.getElementById(id+"-depthsec1")){document.getElementById(id+"-depthsec1").style.display="block";this.id_openbox=id}};this.hide=function(){document.getElementById(this.id_openbox+"-depthsec1").style.display="none";this.id_openbox=""};this.save=function(){if(this.id_openbox){this.cookie.set(this.id,this.id_openbox)}else{this.cookie.del(this.id)}};this.load=function(){var id_openbox=this.cookie.get(this.id);if(id_openbox){this.show(id_openbox);document.getElementById(id_openbox).className="box1-open"}};function Cookie(){this.get=function(name){var cookies=document.cookie.split(";");for(var i=0;i<cookies.length;i++){var a=cookies[i].split("=");if(a.length==2){a[0]=a[0].trim();a[1]=a[1].trim();if(a[0]==name){return unescape(a[1])}}}return""};this.set=function(name,value){document.cookie=name+"="+escape(value)};this.del=function(name){document.cookie=name+"=; expires=Thu, 01-Jan-70 00:00:01 GMT"}}var self=this;this.id=id;this.tree=new Array();this.cookie=new Cookie();this.id_openbox=""}function DropMenu(C){this.type="horizontal";this.delay={show:0,hide:200};this.position={level1:{top:0,left:0},levelX:{top:0,left:0}};this.fixIeSelectBoxBug=false;this.zIndex={visible:500,hidden:-1};this.browser={ie:Boolean(document.body.currentStyle),ie5:(navigator.appVersion.indexOf("MSIE 5.5")!=-1||navigator.appVersion.indexOf("MSIE 5.0")!=-1),ie6:(navigator.appVersion.indexOf("MSIE 6.0")!=-1)};if(!this.browser.ie){this.browser.ie5=false;this.browser.ie6=false}this.init=function(){if(!document.getElementById(this.id)){return }if(this.type!="horizontal"&&this.type!="vertical"){return }if(this.browser.ie&&this.browser.ie5){I()}M();E(document.getElementById(this.id).childNodes,this.tree,this.id)};function M(){var N=document.getElementById(L.id).getElementsByTagName("div");var Q=new Array();var P=new Array();for(var O=0;O<N.length;O++){if(N[O].className=="section"){Q.push(N[O])}}for(var O=0;O<Q.length;O++){P.push(F(Q[O].childNodes))}for(var O=0;O<Q.length;O++){Q[O].style.width=(P[O])+"px"}if(L.browser.ie){for(var O=0;O<Q.length;O++){D(Q[O].childNodes,P[O])}}}function I(){var O=document.getElementById(L.id).getElementsByTagName("a");for(var N=0;N<O.length;N++){if(/item2/.test(O[N].className)){O[N].innerHTML='<div nowrap="nowrap">'+O[N].innerHTML+"</div>"}}}function F(N){var P=0;for(var O=0;O<N.length;O++){if(N[O].nodeType!=1||/section/.test(N[O].className)){continue}if(N[O].offsetWidth>P){P=N[O].offsetWidth}}return P}function D(N,P){for(var O=0;O<N.length;O++){if(N[O].nodeType==1&&/item2/.test(N[O].className)&&N[O].currentStyle){if(L.browser.ie5){N[O].style.width=(P)+"px"}else{N[O].style.width=(P-parseInt(N[O].currentStyle.paddingLeft)-parseInt(N[O].currentStyle.paddingRight))+"px"}}}}function E(Q,N,T){for(var R=0;R<Q.length;R++){if(1!=Q[R].nodeType){continue}switch(true){case /\bitem1\b/.test(Q[R].className):Q[R].id=T+"-"+N.length;N.push(new Array());Q[R].onmouseover=H;Q[R].onmouseout=J;break;case /\bitem2\b/.test(Q[R].className):Q[R].id=T+"-"+N.length;N.push(new Array());Q[R].onmouseover=H;Q[R].onmouseout=J;break;case /\bsection\b/.test(Q[R].className):Q[R].id=T+"-"+(N.length-1)+"-section";Q[R].onmouseover=K;Q[R].onmouseout=G;var P=document.getElementById(T+"-"+(N.length-1));var O=document.getElementById(Q[R].id);var S=new B(P.id);if(1==S.level){if("horizontal"==L.type){O.style.top=P.offsetTop+P.offsetHeight+L.position.level1.top+"px";if(L.browser.ie5){O.style.left=L.position.level1.left+"px"}else{O.style.left=P.offsetLeft+L.position.level1.left+"px"}}else{if("vertical"==L.type){O.style.top=P.offsetTop+L.position.level1.top+"px";if(L.browser.ie5){O.style.left=P.offsetWidth+L.position.level1.left+"px"}else{O.style.left=P.offsetLeft+P.offsetWidth+L.position.level1.left+"px"}}}}else{O.style.top=P.offsetTop+L.position.levelX.top+"px";O.style.left=P.offsetLeft+P.offsetWidth+L.position.levelX.left+"px"}L.sections.push(Q[R].id);L.sectionsShowCnt.push(0);L.sectionsHideCnt.push(0);if(L.fixIeSelectBoxBug&&L.browser.ie6){Q[R].innerHTML=Q[R].innerHTML+'<iframe id="'+Q[R].id+'-iframe" src="javascript:false;" scrolling="no" frameborder="0" style="position: absolute; top: 0px; left: 0px; display: none; filter:alpha(opacity=0);"></iframe>'}break}if(Q[R].childNodes){if(/\bsection\b/.test(Q[R].className)){E(Q[R].childNodes,N[N.length-1],T+"-"+(N.length-1))}else{E(Q[R].childNodes,N,T)}}}}function H(){L.itemShowCnt++;var O=this.id+"-section";if(L.visible.length){var Q=new B(L.visible.getLast());Q=document.getElementById(Q.getParent().id);itsParentElement=Q;if(/item\d-active/.test(Q.className)){Q.className=Q.className.replace(/(item\d)-active/,"$1")}}if(L.sections.contains(O)){A();L.sectionsHideCnt[L.sections.indexOf(O)]++;var P=L.sectionsShowCnt[L.sections.indexOf(O)];var N=setTimeout(function(S,R){return function(){L.showSection(S,R)}}(O,P),L.delay.show);L.timers.push(N)}else{if(L.visible.length){A();var N=setTimeout(function(S,R){return function(){L.showItem(S,R)}}(this.id,L.itemShowCnt),L.delay.show);L.timers.push(N)}}}function J(){L.itemShowCnt++;var O=this.id+"-section";if(L.sections.contains(O)){L.sectionsShowCnt[L.sections.indexOf(O)]++;if(L.visible.contains(O)){var P=L.sectionsHideCnt[L.sections.indexOf(O)];var N=setTimeout(function(R,Q){return function(){L.hideSection(R,Q)}}(O,P),L.delay.hide);L.timers.push(N)}}}function K(){L.sectionsHideCnt[L.sections.indexOf(this.id)]++;var O=new B(this.id);var N=document.getElementById(O.getParent().id);if(!/item\d-active/.test(N.className)){N.className=N.className.replace(/(item\d)/,"$1-active")}}function G(){L.sectionsShowCnt[L.sections.indexOf(this.id)]++;var O=L.sectionsHideCnt[L.sections.indexOf(this.id)];var N=setTimeout(function(Q,P){return function(){L.hideSection(Q,P)}}(this.id,O),L.delay.hide);L.timers.push(N)}this.showSection=function(U,P){if(typeof P!="undefined"){if(P!=this.sectionsShowCnt[this.sections.indexOf(U)]){return }}this.sectionsShowCnt[this.sections.indexOf(U)]++;if(this.visible.length){if(U==this.visible.getLast()){return }var S=new B(U);var N=S.getParentSections();for(var O=this.visible.length-1;O>=0;O--){if(N.contains(this.visible[O])){break}else{this.hideSection(this.visible[O])}}}var S=new B(U);var R=document.getElementById(S.getParent().id);if(!/item\d-active/.test(R.className)){R.className=R.className.replace(/(item\d)/,"$1-active")}if(document.all){document.getElementById(U).style.display="block"}document.getElementById(U).style.visibility="visible";document.getElementById(U).style.zIndex=this.zIndex.visible;if(this.fixIeSelectBoxBug&&this.browser.ie6){var T=document.getElementById(U);var Q=document.getElementById(U+"-iframe");Q.style.width=T.offsetWidth+parseInt(T.currentStyle.borderLeftWidth)+parseInt(T.currentStyle.borderRightWidth);Q.style.height=T.offsetHeight+parseInt(T.currentStyle.borderTopWidth)+parseInt(T.currentStyle.borderBottomWidth);Q.style.top=-parseInt(T.currentStyle.borderTopWidth);Q.style.left=-parseInt(T.currentStyle.borderLeftWidth);Q.style.zIndex=T.style.zIndex-1;Q.style.display="block"}this.visible.push(U)};this.showItem=function(R,P){if(typeof P!="undefined"){if(P!=this.itemShowCnt){return }}this.itemShowCnt++;if(this.visible.length){var Q=new B(R+"-section");var N=Q.getParentSections();for(var O=this.visible.length-1;O>=0;O--){if(N.contains(this.visible[O])){break}else{this.hideSection(this.visible[O])}}}};this.hideSection=function(S,O){if(typeof O!="undefined"){if(O!=this.sectionsHideCnt[this.sections.indexOf(S)]){return }if(S==this.visible.getLast()){for(var N=this.visible.length-1;N>=0;N--){this.hideSection(this.visible[N])}return }}else{if(itsParentElement&&itsParentClass){itsParentElement.className=itsParentClass;itsParentElement=false;itsParentClass=false}}var R=new B(S);var Q=document.getElementById(R.getParent().id);if(/item\d-active/.test(Q.className)){Q.className=Q.className.replace(/(item\d)-active/,"$1")}document.getElementById(S).style.zIndex=this.zIndex.hidden;document.getElementById(S).style.visibility="hidden";if(document.all){document.getElementById(S).style.display="none"}if(this.fixIeSelectBoxBug&&this.browser.ie6){var P=document.getElementById(S+"-iframe");P.style.display="none"}if(this.visible.contains(S)){if(S==this.visible.getLast()){this.visible.pop()}else{return }}else{return }this.sectionsHideCnt[this.sections.indexOf(S)]++};function B(N){this.menu=L;this.id=N;this.getLevel=function(){var O=this.id.substr(this.menu.id.length);return O.substrCount("-")};this.getParent=function(){var P=this.id.substr(this.menu.id.length);var O=P.split("-");O.pop();return new B(this.menu.id+O.join("-"))};this.hasParent=function(){var P=this.id.substr(this.menu.id.length);var O=P.split("-");return O.length>2};this.hasChilds=function(){return Boolean(document.getElementById(this.id+"-section"))};this.getParentSections=function(){var R=this.id.substr(this.menu.id.length);R=R.substr(0,R.length-"-section".length);var O=R.split("-");O.shift();O.pop();var R=this.menu.id;var P=[];for(var Q=0;Q<O.length;Q++){R+=("-"+O[Q]);P.push(R+"-section")}return P};this.level=this.getLevel()}function A(){for(var N=L.timers.length-1;N>=0;N--){clearTimeout(L.timers[N]);L.timers.pop()}}var L=this;this.id=C;this.tree=[];this.sections=[];this.sectionsShowCnt=[];this.sectionsHideCnt=[];this.itemShowCnt=0;this.timers=[];this.visible=[]}sfHover=function(){var C=false;var B=getElement("nav");if(B&&B.getElementsByTagName){C=B.getElementsByTagName("LI");for(var A=0;A<C.length;A++){C[A].onmouseover=function(){this.className+=" sfhover"};C[A].onmouseout=function(){this.className=this.className.replace(new RegExp(" sfhover\\b"),"")}}}C=false;B=getElement("vertnav");if(B&&B.getElementsByTagName){C=B.getElementsByTagName("LI");for(var A=0;A<C.length;A++){C[A].onmouseover=function(){this.className+=" sfhover"};C[A].onmouseout=function(){this.className=this.className.replace(new RegExp(" sfhover\\b"),"")}}}C=false;B=getElement("sf_nav");if(B&&B.getElementsByTagName){C=B.getElementsByTagName("LI");for(var A=0;A<C.length;A++){C[A].onmouseover=function(){this.className+=" sfhover"};C[A].onmouseout=function(){this.className=this.className.replace(new RegExp(" sfhover\\b"),"")}}}};if(window.attachEvent){window.attachEvent("onload",sfHover)};