/*
//START SITEMAP SCRIPT
<?

$group[0] = array(0,"Ernährung und Nahrungsergänzungsmittel","pi186239236.html","null","100");
$group[1] = array(1,"Joghurt, Quark und Käse selbstgemacht","pi703880903.html","0","52");
$group[2] = array(2,"Lebensmittelrohstoffe","pi-737488427.html","0","46");
$group[3] = array(3,"Molke und Suppen","pi-120282128.html","0","49");
$group[4] = array(4,"Molke mit Geschmack","pi147193160.html","3","49-1");
$group[5] = array(5,"Süßmolkenpulver - natur","pi-1184960107.html","3","49-2");
$group[6] = array(6,"Molke - Suppen","pi1151129665.html","3","49-3");
$group[7] = array(7,"Natürliche Säfte & Co.","pi-69504260.html","0","53");
$group[8] = array(8,"Süßungsmittel","pi1105305165.html","0","54");
$group[9] = array(9,"Zum Knabbern und Geniessen","pi-622335074.html","0","51");
$group[10] = array(10,"Körperflege und Wellness","pi1260514741.html","null","200");
$group[11] = array(11,"Körperpflege und Gesichtspflege","pi808320696.html","10","6");
$group[12] = array(12,"Alepposeife ","pi-1333621391.html","11","68");
$group[13] = array(13,"Duftseife","pi-1966340162.html","12","68-2");
$group[14] = array(14,"Aleppo Mignons","pi-1453873468.html","12","68-1");
$group[15] = array(15,"Alepposeife","pi-666820694.html","12","68-7");
$group[16] = array(16,"Formseife","pi-1673390988.html","12","68-4");
$group[17] = array(17,"Pflanzliche Körperöle und  Massageöle","pi251816377.html","10","20004001");
$group[18] = array(18,"Aloe Vera Serie","pi-520217225.html","10","1");
$group[19] = array(19,"Rund ums Haar","pi933998891.html","10","13");
$group[20] = array(20,"Henna - natürliche Haarfärbemittel","pi1293567825.html","19","15");
$group[21] = array(21,"Sauna-Aufguss + Bäder","pi573064538.html","10","0402");
$group[22] = array(22,"Teebaumölserie","pi-1811877894.html","10","4");
$group[23] = array(23,"Natürlicher Motten- und Insektenschutz","pi1453037367.html","10","69");
$group[24] = array(24,"Kosmetik Rohstoffe und Hilfsmittel","pi1422354130.html","null","300");
$group[25] = array(25,"Alkohol","pi8601960.html","24","22");
$group[26] = array(26,"Emulgatoren","pi1804342893.html","24","19");
$group[27] = array(27,"Fluids","pi1983474335.html","24","26");
$group[28] = array(28,"Konsistenzgeber, Verdicker","pi-33169622.html","24","20");
$group[29] = array(29,"Konservierungsmittel","pi1711797859.html","24","21");
$group[30] = array(30,"Kosmetikrohstoffe für Haarpflegeprodukte","pi715298804.html","24","27");
$group[31] = array(31,"Tenside für Shampoos, Duschgel, etc.","pi-870715931.html","24","28");
$group[32] = array(32,"Zubehör","pi-326463678.html","24","29");
$group[33] = array(33,"Kosmetikbehälter","pi395344539.html","32","30");
$group[34] = array(34,"Bechergläser, Messbecher, Messzylinder","pi-766718144.html","32","31");
$group[35] = array(35,"Öle  Ätherische Öle Parfum","pi669892331.html","null","400");
$group[36] = array(36,"Ätherische Öle","pi-1984696767.html","35","32");
$group[37] = array(37,"Ätherische Öl-Kompositionen","pi-403749010.html","35","35");
$group[38] = array(38,"Parfumöle","pi-188980649.html","35","36");
$group[39] = array(39,"Haushalt und Wäsche","pi107612945.html","null","600");
$group[40] = array(40,"ökologisches Waschmittel und Zubehör","pi-33057815.html","39","751");
$group[41] = array(41,"Waschmittelbaukasten, flüssig","pi117388474.html","40","73");
$group[42] = array(42,"Waschmittelbaukasten, Pulver","pi-1215245960.html","40","75");
$group[43] = array(43,"Waschmittelparfumöle","pi1722196505.html","40","76");
$group[44] = array(44,"Waschmittel Zubehör","pi-1866768205.html","40","74");
$group[45] = array(45,"Neemprodukte - Haus, Garten und Tier","pi266292285.html","39","72");
$group[46] = array(46,"Reinigungsmittel","pi-34275668.html","39","70");
$group[47] = array(47,"Raumaromatisierung","pi1191226754.html","null","0401");
$group[48] = array(48,"Duftbrunnen; Zimmerbrunnen","pi1126036599.html","47","040005");
$group[49] = array(49,"Ersatzteile für Duftbrunnen und Aromastream","pi-17353415.html","48","040051");
$group[50] = array(50,"AQUAROMA","pi-1531443929.html","47","0404");
$group[51] = array(51,"Duftkompositionen","pi1125985397.html","47","04001");
$group[52] = array(52,"Duftkeramik","pi-1964198667.html","47","0400006");
$group[53] = array(53,"Duftlampen","pi-1096924903.html","47","040008");
$group[54] = array(54,"Ersatzteile für Duftlampen","pi-393876642.html","53","040009");
$group[55] = array(55,"Raumspray","pi1748464460.html","47","37");
$group[56] = array(56,"Restposten und Sonderangebote","pi1129296143.html","null","9999");
$group[57] = array(57," Aktion","pi-174703491.html","56","3");
$group[58] = array(58," Restposten","pi1129446003.html","56","99901");


?>
//END SITEMAP SCRIPT
*/

//
function miniCart(){
var prdCount = 0, prdString = "", subTotal = (xmlConfig.cartSubTotal > 0)?xmlConfig.cartSubTotal:0;
        if(xmlOHeader.childNodes.length==0) subTotal = 0;
        for(var i=0;i<xmlOHeader.childNodes.length;i++){
                prdCount = prdCount+(parseInt(xmlOHeader.childNodes[i].QuantityAmount));
                };
        prdString += "Produkte:<strong>&nbsp;" + prdCount + "</strong><br>";
        prdString += "Summe:<strong>&nbsp;" + TFormatCurrency(subTotal, objPriCurrency) + "</strong><br><br>";
        prdString += "<a class=\"WAGRUNAV\" href=\"orderform." + xmlConfig.fileExtension + "\">";
        prdString += "<strong>" + '<img src="assets/images/bullet.gif" width="11" height="14" alt="Bullet.gif" border="0" align="absmiddle" hspace="0" vspace="0" class="catnav">' + "Zum Bestellschein</strong></a>";
        return(prdString);
        };
//
var TNavDropDownIndent = ".."
//
function NavLinkedDropDownList(){
        return(TNavDropDownList(true));
        };
//
function NavDropDownList(){
        return(TNavDropDownList(false));
        };
//
function storeSearchParameters(optionValueArray){
var xmlSearchEngine = xmlConfig.getFirstItem("SearchEngine");
        if(optionValueArray[0]!="null"&&optionValueArray[0]!="nada"){
                xmlSearchEngine.categoryIndex = optionValueArray[0];
                xmlSearchEngine.categoryId = optionValueArray[2];
                xmlSearchEngine.ByCategory = "1";
                }
        else{
                xmlSearchEngine.categoryIndex = "null";
                xmlSearchEngine.categoryId = "null";
                xmlSearchEngine.ByCategory = "0";
                };
        };
//
function TNavDropDownList(asLink){
var rString = "";
var myNavIndex = "";
        if(asLink) myNavIndex = xmlConfig.navIndex;
        else myNavIndex = xmlConfig.getFirstItem("SearchEngine").categoryIndex;
        if(!(myNavIndex=="null"||myNavIndex=="")){ navigation[parseInt(myNavIndex)].active = true; };
        if(asLink) rString += "<select name=\"navselect\" onChange=\"changeLoc(this[this.selectedIndex].value.split(';;')[0],this[this.selectedIndex].value.split(';;')[1])\">"
        else rString += "<select name=\"navselect\" onChange=\"storeSearchParameters(this[this.selectedIndex].value.split(';;'))\">";
        rString += "<option value=\"nada;;start.htm;;null\">Gesamtkatalog</option>";
        for(var i=0; i<navigation.length; i++){
                if(navigation[i].parentId==null){
                        rString += TNavDropDownItem(navigation[i], "");
                        };
                };
        rString += "</select>";
        return(rString);
        };
//
function TNavDropDownItem(navItem, cptPreFix){
var rString = "";
        rString += "<option value=\"" + navItem.id + ";;" + navItem.linkUrl + ";;" + navItem.categoryId + "\"";
        if(navItem.active) rString += " selected";
        rString += ">" + cptPreFix + navItem.caption + "</option>";
        for(var i=0; i<navigation.length;i++) if(navigation[i].parentId==navItem.id) rString += TNavDropDownItem(navigation[i], cptPreFix + TNavDropDownIndent);
        return(rString);        
        };
//
        function openItem(itemId){
        var objActiveItem = null;
                if(itemId!=null){
                        objActiveItem = navigation[itemId];
                        if(objActiveItem!=null){
                                objActiveItem.open = true;
                                openItem(objActiveItem.parentId);
                                };
                        };
                };
                
        function activateItem(itemId){
        var objActiveItem = null;
                if(itemId!=null){
                        objActiveItem = navigation[itemId];
                        if(objActiveItem!=null){
                                objActiveItem.active = true;
                                openItem(objActiveItem.parentId);
                                };
                        };
                };
                
        function itemHasSubelems(itemId){
                for(var i=0; i<navigation.length;i++) if(navigation[i].parentId==itemId) return(true);
                return(false);
                };
        
        function TNavLinkList(){
        var strHTML = "";
                for(var i=0; i<navigation.length; i++) if(navigation[i].parentId==null) strHTML += printItem(navigation[i], 0);
                return(strHTML);
                };        
                
        function printItem(navItem, depth){
        var strHTML = "";
        var elemWidth = 1;
                strHTML += '<table width="100%" class="CATLINKS1STPARENT" border="0" cellpadding="2" cellspacing="0" >';
                strHTML += "<tr>"
                for(var i=0; i<depth; i++){
                        strHTML += "<td";
                        if(navItem.active) strHTML += " class=\"ACTIVECATEGORY\""
                        else strHTML += " class=\"CATLINKS1STBULLET\"";
                        strHTML += ' width="1%"><img src="assets/images/spacer.gif" width="11" height="1" height="1" alt="" border="0"></td>';
                        };
                if(navItem.active) strHTML += '<td width="1%" class="ACTIVECATEGORY"><img src="assets/images/bulletcatact.gif" width="11" height="14" alt="BulletCatAct.gif" border="0" align="bottom" hspace="0" vspace="0" class="catnav"></td>'
                else if(navItem.open&&itemHasSubelems(navItem.id)) strHTML += '<td width="1%" class="CATLINKS1STBULLET"><img src="assets/images/bulletcat1stcls.gif" width="11" height="14" alt="BulletCat1stCls.gif" border="0" align="bottom" hspace="0" vspace="0" class="catnav"></td>'
                else strHTML += '<td width=\"1%\"><img src="assets/images/bulletcat1st.gif" width="11" height="14" alt="BulletCat1st.gif" border="0" align="bottom" hspace="0" vspace="0" class="catnav"></td>'
                strHTML += "<td";
                if(navItem.active) strHTML += " class=\"ACTIVECATEGORY\""
                else strHTML += " class=\"CATLINKS1STBULLET\"";
                strHTML += "width=\"" + ( 100 - ( depth + 1 ) ) + "%\">"
                        + "<a href=\"" + navItem.linkUrl + "?categoryId=" + escape(navItem.id) + "\" class=\"WAGRUNAV\">"
                        + navItem.caption
                        + "</a>"
                        + "</td>";
                strHTML += "</tr>"
                strHTML += "</table>"
                depth++;
                if(navItem.active||navItem.open){
                        for(var i=0; i<navigation.length;i++) if(navigation[i].parentId==navItem.id) strHTML += printItem(navigation[i], depth);
                        };
                return(strHTML);
                };


//

// navElem
        function navElem(id,caption,linkUrl,parentId,categoryId){
                this.id = id;
                this.caption = caption;
                this.linkUrl = linkUrl;
                this.parentId = parentId;
                this.active = false;
                this.open = false;
                this.categoryId = categoryId;
                };
// navigation
var navigation = new Array();
//
navigation[0] = new navElem(0,"Ernährung und Nahrungsergänzungsmittel","pi186239236.html",null,"100");
navigation[1] = new navElem(1,"Joghurt, Quark und Käse selbstgemacht","pi703880903.html",0,"52");
navigation[2] = new navElem(2,"Lebensmittelrohstoffe","pi-737488427.html",0,"46");
navigation[3] = new navElem(3,"Molke und Suppen","pi-120282128.html",0,"49");
navigation[4] = new navElem(4,"Molke mit Geschmack","pi147193160.html",3,"49-1");
navigation[5] = new navElem(5,"Süßmolkenpulver - natur","pi-1184960107.html",3,"49-2");
navigation[6] = new navElem(6,"Molke - Suppen","pi1151129665.html",3,"49-3");
navigation[7] = new navElem(7,"Natürliche Säfte & Co.","pi-69504260.html",0,"53");
navigation[8] = new navElem(8,"Süßungsmittel","pi1105305165.html",0,"54");
navigation[9] = new navElem(9,"Zum Knabbern und Geniessen","pi-622335074.html",0,"51");
navigation[10] = new navElem(10,"Körperflege und Wellness","pi1260514741.html",null,"200");
navigation[11] = new navElem(11,"Körperpflege und Gesichtspflege","pi808320696.html",10,"6");
navigation[12] = new navElem(12,"Alepposeife ","pi-1333621391.html",11,"68");
navigation[13] = new navElem(13,"Duftseife","pi-1966340162.html",12,"68-2");
navigation[14] = new navElem(14,"Aleppo Mignons","pi-1453873468.html",12,"68-1");
navigation[15] = new navElem(15,"Alepposeife","pi-666820694.html",12,"68-7");
navigation[16] = new navElem(16,"Formseife","pi-1673390988.html",12,"68-4");
navigation[17] = new navElem(17,"Pflanzliche Körperöle und  Massageöle","pi251816377.html",10,"20004001");
navigation[18] = new navElem(18,"Aloe Vera Serie","pi-520217225.html",10,"1");
navigation[19] = new navElem(19,"Rund ums Haar","pi933998891.html",10,"13");
navigation[20] = new navElem(20,"Henna - natürliche Haarfärbemittel","pi1293567825.html",19,"15");
navigation[21] = new navElem(21,"Sauna-Aufguss + Bäder","pi573064538.html",10,"0402");
navigation[22] = new navElem(22,"Teebaumölserie","pi-1811877894.html",10,"4");
navigation[23] = new navElem(23,"Natürlicher Motten- und Insektenschutz","pi1453037367.html",10,"69");
navigation[24] = new navElem(24,"Kosmetik Rohstoffe und Hilfsmittel","pi1422354130.html",null,"300");
navigation[25] = new navElem(25,"Alkohol","pi8601960.html",24,"22");
navigation[26] = new navElem(26,"Emulgatoren","pi1804342893.html",24,"19");
navigation[27] = new navElem(27,"Fluids","pi1983474335.html",24,"26");
navigation[28] = new navElem(28,"Konsistenzgeber, Verdicker","pi-33169622.html",24,"20");
navigation[29] = new navElem(29,"Konservierungsmittel","pi1711797859.html",24,"21");
navigation[30] = new navElem(30,"Kosmetikrohstoffe für Haarpflegeprodukte","pi715298804.html",24,"27");
navigation[31] = new navElem(31,"Tenside für Shampoos, Duschgel, etc.","pi-870715931.html",24,"28");
navigation[32] = new navElem(32,"Zubehör","pi-326463678.html",24,"29");
navigation[33] = new navElem(33,"Kosmetikbehälter","pi395344539.html",32,"30");
navigation[34] = new navElem(34,"Bechergläser, Messbecher, Messzylinder","pi-766718144.html",32,"31");
navigation[35] = new navElem(35,"Öle  Ätherische Öle Parfum","pi669892331.html",null,"400");
navigation[36] = new navElem(36,"Ätherische Öle","pi-1984696767.html",35,"32");
navigation[37] = new navElem(37,"Ätherische Öl-Kompositionen","pi-403749010.html",35,"35");
navigation[38] = new navElem(38,"Parfumöle","pi-188980649.html",35,"36");
navigation[39] = new navElem(39,"Haushalt und Wäsche","pi107612945.html",null,"600");
navigation[40] = new navElem(40,"ökologisches Waschmittel und Zubehör","pi-33057815.html",39,"751");
navigation[41] = new navElem(41,"Waschmittelbaukasten, flüssig","pi117388474.html",40,"73");
navigation[42] = new navElem(42,"Waschmittelbaukasten, Pulver","pi-1215245960.html",40,"75");
navigation[43] = new navElem(43,"Waschmittelparfumöle","pi1722196505.html",40,"76");
navigation[44] = new navElem(44,"Waschmittel Zubehör","pi-1866768205.html",40,"74");
navigation[45] = new navElem(45,"Neemprodukte - Haus, Garten und Tier","pi266292285.html",39,"72");
navigation[46] = new navElem(46,"Reinigungsmittel","pi-34275668.html",39,"70");
navigation[47] = new navElem(47,"Raumaromatisierung","pi1191226754.html",null,"0401");
navigation[48] = new navElem(48,"Duftbrunnen; Zimmerbrunnen","pi1126036599.html",47,"040005");
navigation[49] = new navElem(49,"Ersatzteile für Duftbrunnen und Aromastream","pi-17353415.html",48,"040051");
navigation[50] = new navElem(50,"AQUAROMA","pi-1531443929.html",47,"0404");
navigation[51] = new navElem(51,"Duftkompositionen","pi1125985397.html",47,"04001");
navigation[52] = new navElem(52,"Duftkeramik","pi-1964198667.html",47,"0400006");
navigation[53] = new navElem(53,"Duftlampen","pi-1096924903.html",47,"040008");
navigation[54] = new navElem(54,"Ersatzteile für Duftlampen","pi-393876642.html",53,"040009");
navigation[55] = new navElem(55,"Raumspray","pi1748464460.html",47,"37");
navigation[56] = new navElem(56,"Restposten und Sonderangebote","pi1129296143.html",null,"9999");
navigation[57] = new navElem(57," Aktion","pi-174703491.html",56,"3");
navigation[58] = new navElem(58," Restposten","pi1129446003.html",56,"99901");

// getNavElementByCatID
function getNavElementByCatID(categoryId){
        for(var i=0; i<navigation.length; i++){
                if(navigation[i].categoryId==categoryId){
                        return(navigation[i]);
                        break;
                        };
                };
                return(null);
        };
// changeLoc
function changeLoc(id,linkUrl){
        if(id!="nada"){
                xmlConfig.navIndex = id.toString();
                if(xmlConfig.getFirstItem("SearchEngine").ByCategory == "1"){
                        if(id=="null") xmlConfig.getFirstItem("SearchEngine").categoryId = "null"
                        else xmlConfig.getFirstItem("SearchEngine").categoryId = navigation[id].categoryId;
                        xmlConfig.getFirstItem("SearchEngine").categoryIndex = id;
                        }
                else{
                        xmlConfig.getFirstItem("SearchEngine").categoryId = "null";
                        xmlConfig.getFirstItem("SearchEngine").categoryIndex = "null";
                        };
                safeData();
                location.href = linkUrl + "?categoryId=" + id.toString();
                };
        };
// searchOnEnterNavi
function searchOnEnterNavi(){
        if(window.event.keyCode==13){
                xmlConfig.getFirstItem('SearchEngine').term=document.searchEngine.searchTerm.value;
                location.href = "search.html";
                };
        };
// activates entries for categories
activateItem(getParameterFromURL("categoryId"));