//VERSION 3.1//////////////////////////////////////////////////////////////function convertSpecials(inputtext) {        ctext =inputtext;        ctext = ctext.replace('&','&amp;');        ctext = ctext.replace('”','ä');        ctext = ctext.replace('¸','ü');        ctext = ctext.replace('Ð','Ü');        ctext = ctext.replace('–','ö');        ctext = ctext.replace('÷','Ö');        ctext = ctext.replace('þ','ß');        ctext = ctext.replace('§','ß');        return ctext;}function ConvUML(inputtext) {        ctext = inputtext;        ctext = ctext.replace(String.fromCharCode(228),'&auml;');        ctext = ctext.replace(String.fromCharCode(252),'&uuml;');        ctext = ctext.replace(String.fromCharCode(246),'&ouml;');        ctext = ctext.replace(String.fromCharCode(196),'&Auml;');        ctext = ctext.replace(String.fromCharCode(220),'&Uuml;');        ctext = ctext.replace(String.fromCharCode(214),'&Ouml;');        ctext = ctext.replace(String.fromCharCode(223),'&szlig;');        return ctext;}function WandleMerkmal(Thetext) {        var txt;        txt=Thetext;        txt=txt.replace(/§/g, String.fromCharCode(223));        txt=txt.replace(/xaex/g, String.fromCharCode(228));        txt=txt.replace(/xAex/g, String.fromCharCode(196));        txt=txt.replace(/xuex/g, String.fromCharCode(252));        txt=txt.replace(/xUex/g, String.fromCharCode(220));        txt=txt.replace(/xoex/g, String.fromCharCode(246));        txt=txt.replace(/xOex/g, String.fromCharCode(214));        txt=txt.replace(/xQx/g,  String.fromCharCode(34));        txt=txt.replace(/xlex/g, String.fromCharCode(32));        txt=txt.replace(/\//g, "\/");        return(txt);}function WandleMerkmal_umgekehrt(Thetext) {	var txt;	txt=Thetext;	//txt=txt.replace(String.fromCharCode(223),/§/g);	txt=txt.replace(String.fromCharCode(228),'xaex');	txt=txt.replace(String.fromCharCode(196),'xAex');	txt=txt.replace(String.fromCharCode(252),'xuex');	txt=txt.replace(String.fromCharCode(220),'xUex');	txt=txt.replace(String.fromCharCode(246),'xoex');		txt=txt.replace(String.fromCharCode(214),'xOex');	txt=txt.replace(String.fromCharCode(34),'xQx');	txt=txt.replace(String.fromCharCode(32),'xlex');		return(txt);}function tooltip(nr) {        var IE5=document.getElementById;        var IE4=(document.all && (!document.getElementById));        //Aktuellen Div-Namen des tooltips speichern        //Netscape6 - Internet Explorer 4-5        if (document.all || document.getElementById) {           tempdiv5="divTooltip"+nr;        }        //Aktuellen Div-Namen des tooltips speichern        //Internet Explorer 4        if (IE4) {           tempdiv4=eval("document.all.divTooltip"+nr);        }        //Mausposition in Variablen speichern        //Internet Explorer 4-5        if (document.all) {                tempX=event.clientX;                tempY=event.clientY;        }        //Dem div die Mausposition zuweisen        //Internet Explorer 5 aber nicht Netscape 6        if (document.getElementById && navigator.appName!="Netscape") {                document.getElementById(tempdiv5).style.left=0;                document.getElementById(tempdiv5).style.top=tempY;        }        if (IE4) {           //tempdiv.style.left=tempX-40;           tempdiv4.style.left=0;           tempdiv4.style.top=tempY;        }        //Tooltip sichtbar machen        //Netscape 6 - Internet Explorer 5        if (document.getElementById && querySystem("browser")!="op") {                document.getElementById(tempdiv5).style.visibility="visible";        }        //Tooltip sichtbar machen        //Internet Explorer 4 aber nicht 5        if (IE4) {           tempdiv4.style.visibility="visible";        }}function hideTooltip (nr) {        var IE5=(document.getElementById);        var IE4=(document.all && (!document.getELementById));        if (IE5 && querySystem("browser")!="op") {                tempdiv5="divTooltip"+nr                document.getElementById(tempdiv5).style.visibility="hidden";        }        if (IE4) {           tempdiv4=eval("document.all.divTooltip"+nr);           tempdiv4.style.visibility="hidden";        }}function FUNCSmitKomma(zahl) {        // Rechnet Zahlen In Strings im Format "x,nn" um        if (isNaN(zahl)==true) {                return zahl;        } else {                Zahltext=String(zahl);                ganzzahl=Math.round(zahl);                nachkomma=zahl-ganzzahl;                nachkomma=nachkomma*100;                nachkomma=Math.round(nachkomma);                nachkomma=nachkomma/100;                zahl=ganzzahl+nachkomma;                if (ganzzahl==zahl) {                        Zahltext=String(zahl)+",00";                } else {                        Zahltext=String(zahl);                        test=String(Math.abs(nachkomma));                        programm=navigator.appName;                        if(programm.indexOf("Microsoft") == -1) {                                if (test.length<3)                                        Zahltext=Zahltext+"0";                                } else {                                        if (test.length<4) Zahltext=Zahltext+"0";                                }                        }                nummern = Zahltext.replace(/\./,",");                return nummern;        }}function FUNCSandererPreis(preis) {        if (Waehrung=='EUR') {                preiserg=FUNCSmitKomma(preis*UmrechnungsKurs);                preiserg=preiserg+' '+LandesWaehrung;        } else {                preiserg=FUNCSmitKomma(preis/UmrechnungsKurs);                preiserg=preiserg+'&nbsp;EUR';        }        return preiserg;}function openSingle(cntr) {        parent.basket.INFOBESCH=parent.korb.artbesch[cntr];        parent.basket.INFOBEZ=parent.korb.artbez[cntr];        parent.basket.INFOARTBILD=parent.korb.artbild[cntr];        parent.basket.INFOEINZELBILD=parent.korb.einzelbild[cntr];        parent.basket.INFOPREIS=parent.korb.artpreis[cntr];        parent.basket.INFOVE=parent.korb.artve[cntr];		InfoFenster=window.open("blank.htm","Einzelansicht","width=640,height=480,scrollbars,resizable=yes");		}/////////////////////////////////WANDLE()    (NETSCAPE)function wandle(text){        var txt;        txt=text;        txt=txt.replace(/xssx/g, String.fromCharCode(223));        txt=txt.replace(/xaex/g, String.fromCharCode(228));        txt=txt.replace(/xAex/g, String.fromCharCode(196));        txt=txt.replace(/xuex/g, String.fromCharCode(252));        txt=txt.replace(/xUex/g, String.fromCharCode(220));        txt=txt.replace(/xoex/g, String.fromCharCode(246));        txt=txt.replace(/xOex/g, String.fromCharCode(214));        txt=txt.replace(/xQx/g,  String.fromCharCode(34));        txt=txt.replace(/xlex/g, String.fromCharCode(32));        txt=txt.replace(/\//g, "\/");        return(txt);}function takeToBasket() {        for (i=0; i<parent.korb.PROPHOLDER.length;i++) {                parent.korb.PROPHOLDER[i]=parent.basket.PROPHOLDER[i];        }}function deeplink(artID) {        if (parent.basket.SELKASUBKAT!=null) {                parent.basket.KATBEFORESINGLE=parent.basket.SELKAT;                parent.basket.SUBKATBEFORESINGLE=parent.basket.SELSUBKAT;        } else {                parent.basket.KATBEFORESINGLE=parent.basket.SELKAT;                parent.basket.SUBKATBEFORESINGLE="";                parent.basket.ONLYKAT=true;        }        parent.basket.INFOART=artID;        parent.basket.SUCHMODUS=false;        parent.basket.ONLYKAT=false;        parent.basket.EINZELANSICHT=true;        if (document.all && querySystem("browser")=="ie4") document.location.reload();        if (document.getElementById && navigator.appName=="Microsoft Internet Explorer") parent.main.location.reload();        if (document.getElementById && navigator.appName!="Microsoft Internet Explorer") parent.main.location.reload();        if (navigator.appName!="Microsoft Internet Explorer" && navigator.appName!="Netscape") parent.main.location.reload();        parent.main.location.href="eliste.htm";}function Searchwin() {        suchwort=prompt("Geben Sie einen Suchbegriff ein","");        if (suchwort!=null && suchwort.length>1) {            parent.basket.ACTSUCHWORT=suchwort;            parent.basket.SUCHMODUS=true;                parent.main.location.href="eliste.htm";        } else{                if (suchwort!=null) {                        if (suchwort.length<2) alert("Bitte geben Sie einen Suchbegriff mit mehr als 1 Zeichen an");                }        }}function Searchwin2(suchwort) {        if (suchwort!=null && suchwort.length>1) {            parent.basket.ACTSUCHWORT=suchwort;            parent.basket.SUCHMODUS=true;                parent.main.location.href="eliste.htm";        } else{                if (suchwort!=null) {                        if (suchwort.length<2) alert("Bitte geben Sie einen Suchbegriff mit mehr als 1 Zeichen an");                }        }        return false;}function SubmitSearch(suchbefriff) {                parent.main.location.href="esuche.htm";}///////////////////////////////////////////////////////////////////////////////////////////// getFromFulllist(ITEMNR, ARTNR)// ---> Extracts an Item from the fulllist string Variable//                    --> "ARTNR"://                                The Number of the article in the fullliststack, or "LAST", for the last//                                Article, there.//                    --> "ITEMNR"://                                The Item you want to request from the desired Article.//                                 Example://                                 [001<BR>GreenPaprika |29.00|7 |XXL|1]//                                 [002<BR>RedPaprika   |25.00|16|XL |1]//                                 Price of the second Article://                                                  getFromFulllist(1, 1);                        ->returns "25.00"//                                 Property of the last added Article://                                                  getFromFulllist(3,"LAST");                ->returns "XL"// Note: returns "EMPTY", if the basket is empty!////////////////////////////////////////////////////////////////////////////////////////////function getFromFulllist(ITEMNR,ARTNR) {        var artCnt=0;        var artWhich;        var artSplit=parent.korb.fulllist.split(/\[/);        var artCnt=artSplit.length-1;        if (ARTNR=="LAST") artWhich=artCnt;else artWhich=ARTNR;        if (artCnt>0) {                var itemSplit=artSplit[artWhich].split(/\|/);                return (itemSplit[ITEMNR]);        }else {return("EMPTY");}}function getBasketCount() {        var artSplit=parent.korb.fulllist.split(/\[/);        var artCount=artSplit.length-1;        return artCount;}function showBasketprop(){}////////////////////////////////////////                 drawPropertypop(actnr)//////////////////////////////////////function drawPropertypop(modus, actnr, articlecounter) {        /////////////////////////////////////////////////////        // (0) --NETSCAPE6--   --IE5--  --Opera--        /////////////////////////////////////////////////////        if ((document.all || document.getElementById) && (querySystem("browser")!="ie4")) {                if (parent.korb.prop[actnr]>-1) {                if (parent.korb.prop[actnr]!="...") {                        document.writeln('<table cellpadding=0 cellspacing=0 width=100% border=0 bgcolor="'+propop+'"><tr><td><table cellpadding=0 cellspacing=0 bgcolor="'+propop+'" width=100%><tr><td align=center>');                }                document.writeln('<div id="selProperty'+actnr+'" style="position: relative; background: '+propop+';" onmousedown="javascript: selPropertypop('+actnr+')">');                //document.writeln('<a href="javascript: selPropertypop('+actnr+')">');                document.writeln('<font face="Arial, Helvetica" size=2 color="'+propText+'"><span class="proppopText">Artikelmerkmal<\/span><\/font><br>');                document.writeln('<font face="Arial, Helvetica" size=2 color="'+propText+'"><span class="proppopText">w&auml;hlen:<\/span><\/font>');                //document.writeln('<\/a>');                document.writeln('<\/div>');                if (document.all || document.layers || document.getElementById) {                   document.writeln('<\/td><\/tr><\/table><\/td><\/tr><\/table>');                }                }        }        ///////////////////////////////////////////////////////        // (0) IE4        /////////////////////////////////////////////////////        //if (querySystem("browser")=="ie4") {        //        document.writeln('<div id="divSelpropertyIE4'+actnr+'" style="position: relative;>');        //        document.writeln('<font face="Arial, Helvetica" color="'+propText+'"><span class="proppopText">'+artmerkmal[parent.korb.prop[actnr]][0]+'<\/span><\/font>');        //        document.writeln('<FORM NAME="formPropertyIE4"><SELECT NAME="setPropertyIE4" class="basketbutton">');        //        //        document.writeln('<OPTION>Bitte w&auml;hlen: <\/OPTION>');        //        for (a=2; a<parseInt(artmerkmal[parent.korb.prop[actnr]][1])+2; a++) {        //                document.writeln('<OPTION VALUE="'+artmerkmal[parent.korb.prop[cntr]][a]+'" TEXT="'+artmerkmal[parent.korb.prop[cntr]][a]+'">'+artmerkmal[parent.korb.prop[cntr]][a]+'<\/OPTION>');        //        }        //        document.writeln('<\/SELECT><\/FORM>');        //        document.writeln('<\/div>');        //}        if (document.all || document.getElementById) {                if (parent.korb.prop[actnr]!="...") {                        //////////////////////////////////                        // (1) NETSCAPE 6 UND IE5                        //////////////////////////////////                        if (document.getElementById && querySystem("browser") !="op") {                           if (parent.korb.prop[actnr]>-1) {                           if (modus=="korb") {                                   startALLx=eval("document.all.selProperty"+actnr+".style.left");                                   document.writeln('<div id="divProperty'+actnr+'" style="position: absolute; visibility: hidden; left:'+startALLx+'; background-color:'+dynpop+'">');                           }                           if (modus=="liste") {                                     document.writeln('<div id="divProperty'+actnr+'" style="position: relative; text-align: center; visibility: hidden; left:0; background-color: '+propop+'"; width:50; z-index:1">');                           }                           for (i=2; i<parseInt(artmerkmal[parent.korb.prop[actnr]][1])+2; i++) {                                          document.writeln('<div id="propRow'+(i-2)+'-'+articlecounter+'" style="position: relative; cursor: hand; z-index:1" onMousedown="javascript: hidePropertypop('+actnr+')" onMouseOver="javascript: highlightRow('+(i-2)+','+articlecounter+'); selectProperty('+actnr+','+(i-2)+','+articlecounter+')" onMouseOut="javascript: unhighlightRow('+(i-2)+','+articlecounter+');">');                                          document.writeln('<font face="Arial, Helvetica" size=2 color="'+propText+'">');                                          document.writeln('<span class="proppopText">'+WandleMerkmal(artmerkmal[parent.korb.prop[actnr]][i])+'<\/span>');                                          document.writeln('<\/font>');                                          document.writeln('<\/div>');                                }                           document.writeln('<\/div>');                          }                        }                        //////////////////////////////////                        //        (1)   IE4 UND OPERA                        //////////////////////////////////                        if (querySystem("browser")=="op") {                                if (parent.korb.prop[actnr]>-1) {                           if (modus=="korb") {                                           startALLx=("document.all.selProperty"+actnr+".style.left");                                              document.writeln('<div id="divProperty'+actnr+'" style="cursor:hand; position: absolute; visibility: hidden; left:'+startALLx+'; background-color: '+propop+'; z-index:1;">');                           }                           if (modus=="liste") {                                     startALLx=("document.all.selProperty"+actnr+"style.left");                                     document.writeln('<div id="divProperty'+actnr+'" style="cursor:hand; position: relative; visibility: hidden; left:'+startALLx+';background-color: '+propop+'; z-index:1;">');                           }                           for (i=2; i<parseInt(artmerkmal [parent.korb.prop[actnr]] [1] )+2; i++) {                                      document.writeln ('<div id="propRow'+(i-2)+'x'+articlecounter+'" onMouseover="javascript: highlightRow('+(i-2)+','+articlecounter+')" onMouseOut="javascript: unhighlightRow('+(i-2)+','+articlecounter+');" style="position: relative; text-align: center; z-index: 2">');                                      document.writeln ('<a href="javascript: selectProperty('+actnr+','+(i-2)+','+articlecounter+'); hidePropertypop('+actnr+')" style="cursor:hand"><font face="Arial, Helvetica" size=2 color="'+propText+'">');                                      document.writeln ('<span class="proppopText">'+artmerkmal[parent.korb.prop[actnr]][i]+'<\/span>');                                      document.writeln ('<\/font>');                                      document.writeln ('<\/a>');                                      document.writeln ('<\/div>');                           }                          document.writeln('<\/div>');                          }                        }                }        }}////////////////////////////////////////////////////////////////// VARIOUS HIGHLIGHTING-FUNCTIONS FOR THE DHTML-POPUPS/////////////////////////////////////////////////////////////////function highlightRow (itemID,pageID) {        if (document.all && querySystem("browser")=="ie4") {                whichPropRow=eval("document.all.propRow"+itemID+"x"+pageID);                whichPropRow.style.backgroundColor=flashColor;        }        if (document.getElementById) {                whichPropRow="propRow"+itemID+"-"+pageID;                document.getElementById(whichPropRow).style.backgroundColor=flashColor;        }}function unhighlightRow(itemID,pageID) {        if (document.all && querySystem("browser")=="ie4") {                whichPropRow=eval("document.all.propRow"+itemID+"x"+pageID);                whichPropRow.style.backgroundColor=propop;        }        if (document.getElementById) {                whichPropRow="propRow"+itemID+"-"+pageID;                document.getElementById(whichPropRow).style.backgroundColor=propop;        }}function highlightKat(modus,itemID, pageID) {        if (document.all && querySystem("browser")=="ie4") {                if (modus=="kat") {                        whichKatrow=eval("document.all.katrow"+itemID);                        whichKatrow.style.backgroundColor=flashColor;                }                if (modus=="subkat") {                        whichKatrow=eval("document.all.subkatrow"+itemID+"x"+pageID);                        whichKatrow.style.backgroundColor=flashColor;                }        }        if (document.getElementById) {                if (modus=="kat") {                        whichKatrow="katrow"+itemID;                        document.getElementById(whichKatrow).style.backgroundColor=flashColor;                }                if (modus=="subkat") {                        whichKatrow="subkatrow"+itemID+"x"+pageID;                        document.getElementById(whichKatrow).style.backgroundColor=flashColor;                }        }}function unhighlightKat(modus,itemID,pageID) {        if (document.all && querySystem("browser")=="ie4") {                if (modus=="kat") {                        whichKatrow=eval("document.all.katrow"+itemID);                        whichKatrow.style.backgroundColor=dynpop;                }                if (modus=="subkat") {                        whichKatrow=eval("document.all.subkatrow"+itemID+"x"+pageID);                        whichKatrow.style.backgroundColor=dynpop;                }        }        if (document.getElementById) {                if (modus=="kat") {                        whichKatrow="katrow"+itemID;                        document.getElementById(whichKatrow).style.backgroundColor=dynpop;                }                if (modus=="subkat") {                        whichKatrow="subkatrow"+itemID+"x"+pageID;                        document.getElementById(whichKatrow).style.backgroundColor=dynpop;                }        }}function convertAllart(text) {        convertedText=text.replace(/xlex/g, "&nbsp;");        return (convertedText);}//////////////////////////////////////////////////////////////////        KATEGORIE POPUPS// quickjumpKAT INTERNET EXPLORER & NETSCAPE6/////////////////////////////////////////////////////////////////function quickjumpKAT(modus) {        if (document.all || document.getElementById) {                var convertedKat;                //______________________________________________________________________________________________________________                //        CONFIGURE POPUPS (SIZE,POS)                //______________________________________________________________________________________________________________                   if (document.getElementById) {                           if (navigator.appName=="Microsoft Internet Explorer") {                                   if (querySystem("system")=="win") {Spacer=22;Rowheight=21;topposKat="25px";topposSubkat="25px";}                                if (querySystem("system")=="mac") {Spacer=15;Rowheight=13;topposKat="21px";topposSubkat="20px";}                        }                        if (navigator.appName=="Netscape") {                                if (querySystem("system")=="win") {Spacer=14;Rowheight=13;topposKat="21px";topposSubkat="21px";}                                if (querySystem("system")=="mac") {Spacer=14;Rowheight=13;topposKat="19px";topposSubkat="19px";}                        }                           if (querySystem("browser")=="op") {Spacer=14;Rowheight=13;topposKat="19x";topposSubkat="22px";}                }                if (document.all && querySystem("browser")=="ie4") {Spacer=20;Rowheight=19;topposKat="25px";topposSubkat="25px";}                //_____________________________________________________________________________________________________________                document.writeln('<table cellspacing=0 cellpadding=1 border=0 bgcolor="#000000">');                document.writeln('<tr><td>');                document.writeln('<table cellspacing=0 cellpadding=4 bgcolor="'+dynpop+'" border=0><tr><td>');                if (modus=="start" || modus=="suche") {                        document.writeln('<span onClick="javascript:popKat();" style="cursor: hand">');                        document.writeln('<font face="Arial, Helvetica" size="2" color="'+ListboxFontCol+'">');                        document.writeln('<span class="katcss">Bitte w&auml;hlen:<\/span>');                        document.writeln('<\/font>');                        document.writeln('<\/span>');                }                if (modus=="liste") {                        document.writeln('<span onMousedown="javascript:popKat();" style="cursor: hand">');                        document.writeln('<font face="Arial, Helvetica" size="2" color="'+ListboxFontCol+'">');                        document.writeln('<span class="katcss">'+parent.basket.SELKAT+'&nbsp;&nbsp;<\/span>');                        document.writeln('<\/font>');                        document.writeln('<\/span>');                        document.writeln('<font face="Arial, Helvetica" size=2 color="'+ListboxFontCol+'">');                        if (parent.bsket.ONLYKAT==false) {                                document.writeln('<span class="subkatcss">&gt; &nbsp;'+parent.basket.SELSUBKAT+'<\/span>');                        }                        document.writeln('<\/font>');                }                document.writeln('<\/td><\/tr>');                document.writeln('<\/table>');                document.writeln('<\/td><\/tr>');                document.writeln('<\/table>');                document.writeln('<div id="divKategorie" style="position: absolute; left: 0px; top:'+topposKat+'; visibility: hidden; width:141px;">');                document.writeln('<span><table cellspacing=0 cellpadding=0 border=0 bgcolor="#000000"><tr><td><table cellspacing=1 cellpadding=0 bgcolor="#000000" border=0>');                for (i=0; i<topanz; i++) {                        if (i<topanz-1) {                                document.writeln('<tr><td id="katrow'+i+'" width=129 height='+Rowheight+' nowrap bgcolor="'+dynpop+'">');                                document.writeln('<span onMouseOver="javascript: highlightKat(\'kat\','+i+',0); popSubkat(\''+i+'\');" onmousedown="javascript: loadKat('+i+');" onMouseout="javascript: unhighlightKat(\'kat\','+i+',0);" style="cursor: hand"><font face="Arial, Helvetica" size="2" color="'+ListboxFontCol+'"><span class="katpopText">&nbsp;'+top[i]+'<\/span><\/font><\/span>');                                document.writeln('<\/td><td bgcolor="#FFFFFF"><img src="pix/triangle.gif" border=0><\/td><\/tr>');                        } else {                                //onMouseout="javascript: hidePops();"                                document.writeln('<tr><td id="katrow'+i+'" width=129 height='+Rowheight+' nowrap bgcolor="'+dynpop+'">');                                document.writeln('<span onMouseOver="javascript: highlightKat(\'kat\','+i+',0); popSubkat(\''+i+'\');" onmousedown="javascript: loadKat('+i+');" onMouseout="javascript: unhighlightKat(\'kat\','+i+',0);" style="cursor: hand"><font face="Arial, Helvetica" size="2" color="'+ListboxFontCol+'"><span class="katpopText">&nbsp;'+top[i]+'<\/span><\/font><\/span>');                                document.writeln('<\/td><td bgcolor="#FFFFFF"><img src="pix/triangle.gif" border=0><\/td><\/tr>');                        }                }                document.writeln('<\/table><\/td><\/tr><\/table></span>');                document.writeln('<\/div>');                //NETSCAPE6 UND IE5.5                if (document.getElementById && querySystem("browser")!="op") {                        breite=document.getElementById("divKategorie").style.width;                        xpos=document.getElementById("divKategorie").style.left;                }                //OPERA                if (querySystem("browser")=="op") { breite="141px"; xpos="0px"; }                //IE 4.5 UND DARUEBER BIS 5.0                if (document.all && querySystem("browser")=="ie4") {breite=document.all.divKategorie.style.width; xpos=document.all.divKategorie.style.left;}                if (document.layers) { xpos=document.all.divKategorie.style.left;}                xsubpos=parseInt(breite.substr(0, breite.indexOf("p")))+parseInt(xpos.substr(0, xpos.indexOf("p")));                backCnt=topanz;                //ALLE                for (i=0; i<topanz; i++) {                        document.writeln('<div id="sub'+i+'" style="position: absolute; visibility: hidden; left:'+xsubpos+'; top: '+topposSubkat+';">');                        document.writeln('<table cellspacing=0 cellpadding=0 border=0 width="95%">');                           for (a=0; a<i; a++) {                                          document.writeln('<tr><td height='+Spacer+'><\/td><\/tr>');                                }                        document.writeln('<\/table>');                        document.writeln('<table cellspacing=0 cellpadding=0 border=0 bgcolor="#000000"><tr><td><table cellspacing=1 cellpadding=0 bgcolor="#000000" border=0>');                           for (a=0; a<low[i].length; a++) {                                  if (kat[i][a]!="---") {                                            //hideSub('+i+', '+a+')                                             document.writeln('<tr><td id="subkatrow'+a+'x'+i+'" height='+Rowheight+' nowrap bgcolor="'+dynpop+'"><a href="javascript: loadEkorb('+i+','+a+')" onMouseout="unhighlightKat(\'subkat\','+a+','+i+');" onMouseover="javascript: highlightKat(\'subkat\','+a+','+i+');"><font face="Arial, Helvetica" size="2" color="'+ListboxFontCol+'"><span class="katpopText">&nbsp;'+low[i][a]+'<\/span><\/font><\/a><\/td><\/tr>');                                     }                           }                        document.writeln('<\/table><\/td><\/tr><\/table>');                        document.writeln('<\/div>');                        backCnt=backCnt-1;                }        }}/////////////////////////////////////////////////////////////////// querySystem(QARG)// ---> Gets overall Browser Version//                 --> "QARG"://                        A String which states, if you want to//                        request the OS-Name or the Browser-Version.//                        Pass "system" for OS, and "browser" for...hmm?//// Note: quite unfinished and stupid.../////////////////////////////////////////////////////////////////function querySystem(QARG) {        if (QARG=="DOM") {                var IE4 = (document.all && !document.getElementById) ? true : false;                var NS4 = (document.layers) ? true : false;                var IE5 = (document.all && document.getElementById) ? true : false;                var NS6 = (document.getElementById && !document.all) ? true : false;                var IE = (IE5 || IE4) ? true : false;                if (IE4) return("IE4");                if (NS4) return("NS4");                if (IE5) return("IE5");                if (NS6) return("NS6");                if (IE)  return("IE");        } else {                var sAgent=navigator.userAgent.toLowerCase();                var tmpAgent=new Object();                if (sAgent.indexOf("win")!=-1) tmpAgent.system="win";                if (sAgent.indexOf("mac")!=-1) tmpAgent.system="mac";                if (sAgent.indexOf("x11")!=-1) tmpAgent.system="unix";                if (document.all || document.getElementById){                        switch (tmpAgent.system){                                case 'win':                                        if (sAgent.indexOf("msie 5")!=-1) tmpAgent.browser="ie5";                                        if (sAgent.indexOf("msie 4")!=-1) tmpAgent.browser="ie4";                                        if (sAgent.indexOf("opera")!=-1)  tmpAgent.browser="op";                                case 'mac'://TODO                                        if (sAgent.indexOf("msie 5")!=-1) tmpAgent.browser="ie5";                                        if (sAgent.indexOf("msie 4")!=-1) tmpAgent.browser="ie4";                                        if (sAgent.indexOf("opera")!=-1)  tmpAgent.browser="op";                        }                }                if (navigator.appName=="Netscape") {                        switch (tmpAgent.system){                                case 'win':                                        if(sAgent.indexOf("mozilla/4")!=-1) tmpAgent.browser="nav4";                                        if(sAgent.indexOf("mozilla/5")!=-1) tmpAgent.browser="nav6";                                case 'mac':                                        if(sAgent.indexOf("mozilla/4")!=-1) tmpAgent.browser="nav4";                                        if(sAgent.indexOf("mozilla/5")!=-1) tmpAgent.browser="nav6";                        }                }                if (navigator.appName!="Netscape" && navigator.appName!="Microsoft Internet Explorer") {                        tmpAgent.browser="unknown";                }                if (QARG=="system") return(tmpAgent.system);                if (QARG=="browser") return(tmpAgent.browser);        }}////////////////////////////////////////////////////////////////// updateProps - Diese Funktion wird aufgerufen,// wenn das Artikelmerkmal gewechselt wird// Das aktuelle Artikelmerkmal, wird in die Variable// parent.korb.PROPHOLDER[x] geschrieben.////////////////////////////////////////////////////////////////function returnProps(selectNr) {        var foundArt=false;        var foundProp=false;        var actArt;        var propArt;        var selectitem="document.itemsform.propSel"+selectNr;        var selectlength=selectitem+".length";        //if (querySystem("browser")=="nav4") {                for (i=0; i<eval(selectlength); i++) {                        if (eval(selectitem+".options["+i+"].selected")==true) {                                if (i!=0) {                                   parent.basket.PROPHOLDER[selectNr]=eval(selectitem+".options["+i+"].value");                                }                                if (i==0) {                                          parent.basket.PROPHOLDER[selectNr]="NOPROP";                                }                        }                }        //}}///////////////////////////////////////// popSubkat(modus,item)///////////////////////////////////////function popSubkat(item) {        parent.basket.SELKATNR = item;        parent.basket.SELKAT         = wandle(topkat[item]);        //INTERNET EXPLORER 4        if (document.all && querySystem("browser")=="ie4") {           for (i=0; i<topanz; i++) {                        switcher=eval('document.all.sub'+i+'');                        switcher.style.visibility="hidden";                }                showThis=eval('document.all.sub'+item+'');                showThis.style.visibility="visible";        }        //INTERNET EXPLOER 5 UND NETSCAPE 6 UND OPERA 5        if (document.getElementById) {                for (i=0; i<topanz; i++) {                        switcher=eval('document.getElementById("sub'+i+'")');                        if (querySystem("browser")=="op") {                                switcher.style.visibility="HIDDEN";                        } else {                                switcher.style.visibility="hidden";                        }                }                showThis=eval('document.getElementById("sub'+item+'")');                if (querySystem("browser")=="op") {                        showThis.style.visibility="VISIBLE";                } else {                        showThis.style.visibility="visible";                }        }        //NETSCAPE 4        if (document.layers) {                for (i=0; i<topanz; i++) {                        switcher=eval('document.layers.sublay'+i);                        switcher.visibility="hide";                }                showThis=eval('document.layers.sublay'+item);                showThis.visibility="show";        }}///////////////////////////////////// popKat(modus)///////////////////////////////////function popKat() {        //NETSCAPE 6, INTERNET EXPLORER 5 UND OPERA        if (document.getElementById) {                status=document.getElementById("divKategorie").style.visibility;                //OPERA                if (querySystem("browser")=="op") {                        if (status=="HIDDEN") document.getElementById("divKategorie").style.visibility="visible";                        if (status=="VISIBLE") document.getElementById("divKategorie").style.visibility="hidden";                } else {                        if (status=="hidden") document.getElementById("divKategorie").style.visibility="visible";                        if (status=="visible") document.getElementById("divKategorie").style.visibility="hidden";                }                for (i=0; i<topanz; i++) {                        switcher=eval('document.getElementById("sub'+i+'")');                        switcher.style.visibility="hidden";                }        }        //INTERNET EXPLORER 4        if (document.all && querySystem("browser")=="ie4") {           status=document.all.divKategorie.style.visibility;           if (status=="hidden") document.all.divKategorie.style.visibility="visible";           if (status=="visible") document.all.divKategorie.style.visibility="hidden";           for (i=0; i<topanz; i++) {                      switcher=eval('document.all.sub'+i+'');                   switcher.style.visibility="hidden";           }        }                //NETSCAPE 4        if (document.layers) {                status=document.layers.layKategorie.visibility;                if (status=="hide") document.layers.layKategorie.visibility="show";                if (status=="show") document.layers.layKategorie.visibility="hide";                for (i=0; i<topanz; i++) {                        switcher=eval('document.layers.sublay'+i);                        switcher.visibility="hide";                }        }}/////////////////////////////////////////////////// loadKat(i): Artikel der Haupkategorie aufrufen/////////////////////////////////////////////////function loadKat(katnum) {        parent.basket.ONLYKAT=true;        parent.basket.SUCHMODUS=false;        parent.basket.EINZELANSICHT=false;        parent.basket.SELKAT=wandle(topkat[katnum]);        parent.basket.SELSUBKAT=wandle(low[0][0]);        parent.main.location.href="eliste.htm";}////////////////////////////////////////// loadEkorb(modus,artnr,itemnr)////////////////////////////////////////function loadEkorb(artnr,itemnr) {        if (document.all || document.getElementById || document.layers) {                parent.basket.ONLYKAT=false;                parent.basket.SELSUBKAT=wandle(kat[parent.basket.SELKATNR][itemnr]);                parent.main.location.href="eliste.htm";        }}//////////////////////////////////////////////////////// selectProperty(artID,itemID,NROnPage)//////////////////////////////////////////////////////function selectProperty(artID,itemID,articlecounter) {        //INTERNET EXPLORER 4        if (document.all && querySystem("browser")=="ie4") {          newSel=artmerkmal[parent.korb.prop[artID]][itemID+2];          if (parent.basket.ARTICLESDISPLAYED>1) {                   parent.basket.PROPHOLDER[articlecounter]=newSel;           } else {                    parent.basket.PROPHOLDER[0]=newSel;           }           whichSel=eval("document.all.selProperty"+artID);           whichSel.innerHTML='<a href="javascript: selPropertypop('+artID+');" style="cursor: hand;"><font face="Arial, Helvetica" size=2 color="'+propText+'"><span class="proppopText">Artikelmerkmal<\/span><\/font><br><font face="Arial, Helvetica" size=2 color="'+propText+'"><span class="proppopText"">'+WandleMerkmal(newSel)+'<\/span><\/font><\/a>';        }        //NETSCAPE 6 UND INTERNET EXPLORER 5        if (document.getElementById && querySystem("browser")!="op") {                newSel=artmerkmal[parent.korb.prop[artID]][itemID+2];                if (parent.basket.ARTICLESDISPLAYED>1) {                        parent.basket.PROPHOLDER[articlecounter]=newSel;                } else {                        parent.basket.PROPHOLDER[0]=newSel;                }                whichSel=eval("document.getElementById(\"selProperty"+artID+"\")");                if (navigator.appName=="Microsoft Internet Explorer") {                        whichSel.innerHTML='<a href="javascript: selPropertypop('+artID+');" style="cursor: hand;"><font face=\'Arial, Helvetica\' size=2 color="'+propText+'"><span class=proppopText>Artikelmerkmal<\/span><\/font><br><font face=\'Arial, Helvetica\' size=2 color="'+propText+'"><span class=proppopText>'+WandleMerkmal(newSel)+'<\/span><\/font><\/a>';                }                if (navigator.appName=="Netscape") {                        whichSel.innerHTML='<a href="javascript: selPropertypop('+artID+')" style="cursor:hand"><font face=\'Arial, Helvetica\' size=2 color="'+propText+'"><span class=proppopText>Artikelmerkmal<\/span><\/font><br><font face=\'Arial, Helvetica\' size=2 color="'+propText+'"><span class=proppopText>'+WandleMerkmal(newSel)+'<\/font><\/a>';                }        }        //OPERA ****TODO****        if (querySystem("browser")=="op") {           var newSel=artmerkmal[parent.korb.prop[artID]][itemID+2];           //alert(document.all.selPropery.innerHTML);           //document.all.selProperty.innerHTML='<font face="Arial, Helvetica" size=2 class="Listtext"><b><u><i>Artikelmerkmal<\/i><\/u><\/b><\/font><br><font face="Arial, Helvetica" size=2 class="Listtext">'+newSel+'<\/font>';           parent.basket.PROPHOLDER=newSel;        }}//////////////////////////////////////// selPropertypop()//////////////////////////////////////function selPropertypop(NrOnPage) {        //NETSCAPE 6 und IE5up        if (document.getElementById && querySystem("browser")!="op") {                var whichProp= "divProperty" + String(NrOnPage);                if (document.getElementById(whichProp).style.visibility=="hidden") {                        document.getElementById(whichProp).style.visibility="visible";                } else {                        document.getElementById(whichProp).style.visibility="hidden";                }        }        if (querySystem("browser")=="op") {          if (document.getElementById("divProperty").style.visibility=="HIDDEN") {                        document.getElementById("divProperty").style.visibility="VISIBLE";                } else {                        document.getElementById("divProperty").style.visibility="HIDDEN";                }        }        //IE4        if (document.all && querySystem("browser")=="ie4") {           var whichProp=eval("document.all.divProperty"+String(NrOnPage));           if (whichProp.style.visibility=="hidden") {                        whichProp.style.visibility="visible";                } else {                        whichProp.style.visibility="hidden";                }        }}//////////////////////////////////////// hidePropertypop()//////////////////////////////////////function hidePropertypop(actnr) {        if (document.all && querySystem("browser")=="ie4") {           if (merkmaleOn==1 && parent.korb.prop[parent.basket.ACTUALARTICLE]!="...") {                     whichProp=eval("document.all.divProperty"+actnr);                     whichProp.style.visibility="hidden";           }        }        if (document.getElementById) {                if (merkmaleOn==1 && parent.korb.prop[parent.basket.ACTUALARTICLE]!="...") {                        whichDiv=eval("document.getElementById(\"divProperty"+actnr+"\")");                        whichDiv.style.visibility="hidden";                }        }}////////////////////////////////////////////////// hideSub()// Nachdem man den Link einer Unter-// kategorie verlaesst, wird der entsprechende// div versteckt (sub+whichsub)////////////////////////////////////////////////function hideSub(whichsub, subentry) {        if (document.getElementById && querySystem("browser")!="op") {                if (kat[whichsub].length>1) {                        if (subentry==(kat[whichsub].length-1)) {                                TheSub="sub"+whichsub;                                document.getElementById(TheSub).style.visibility="hidden";                        }                } else {                        TheSub="sub"+whichsub;                        document.getElementById(TheSub).style.visibility="hidden";                }        }        if (document.all && querySystem("browser")=="ie4") {                TheSub=eval("document.all.sub"+whichsub);                TheSub.style.visibility="hidden";        }}//////////////////////////////////// hidePops()//////////////////////////////////function hidePops() {        //NETSCAPE 4.5        if (document.layers) {                document.layers.layKategorie.visibility="hide";                for (i=0; i<topanz; i++) {                        switcher=eval('document.layers.sublay'+i);                        switcher.visibility="hide";                }        }        //IE5 UND NETSCAPE 6        if (document.all || document.getElementById) {                document.getElementById("divKategorie").style.visibility="hidden";                for (i=0; i<topanz; i++) {                        switcher=eval('document.getElementById("sub'+i+'")');                        switcher.style.visibility="hidden";                }        }}