// dropdown-menu-funktionen    function findObject(n, d) {        var p, i, x;        if (!d) {            d = document;        }        if ((p = n.indexOf("?")) > 0 && parent.frames.length) {            d = parent.frames[n.substring(p + 1)].document;            n = n.substring(0, p);        }        if (!(x = d[n]) && d.all) {            x = d.all[n];        }        for (i = 0; !x && i < d.forms.length; i++) {            x = d.forms[i][n];        }        for (i = 0; !x && d.layers && i < d.layers.length; i++) {            x = findObject(n, d.layers[i].document);        }        if (!x && d.getElementById) {            x = d.getElementById(n);        }        return x;    }    function dropdownSet() {		// suffix der images-src        document.ImageOver = "_on";        document.ImageDown = "_on";        var dt = false;        if (document.getElementsByTagName) {            dt = true;        }        if (document.ImageBar) {            return;        }        var i, k = -1, g, x, gg, tl, ts, ti, tm, tt, tsn, tu, el, args = dropdownSet.arguments;        ImageProp = new Array();        for (i = 0; i < args.length; i++) {            ImageProp[i] = args[i];        }        MainImage = new Array();        SubMenu = new Array();        if (dt) {            tm = document.getElementsByTagName("IMG");        } else {            tm = document.images;        }        tm = document.images;        tt = new Array();        tt = tt.concat(tm);        if (document.layers) {            for (i = 0; i < document.layers.length; i++) {                ti = document.layers[i].document.images;                if (ti) {                    tt = tt.concat(ti);                }                for (x = 0; x < document.layers[i].document.layers.length; x++) {                    ti = document.layers[i].document.layers[x].document.images;                    if (ti) {                        tt = tt.concat(ti);                    }                }            }            tm = tt;        }        for (i = 0; i < tm.length; i++) {            tl = tm[i].name;            if (dt && !tl) {                tl = tm[i].id;            }            if (tl && tl.indexOf("mainimg_") == 0) {                ts = tl.replace("mainimg_", "");                tsn = "submenu_" + ts;                k++;                MainImage[k] = tl;                if ((g = findObject(tsn)) != null) {                    SubMenu[k] = tsn;                    gg = (document.layers) ? g : g.style;                    gg.visibility = "hidden";                } else {                    SubMenu[k] = "N";                }            }        }        document.SwapDown = new Array();        document.SwapOver = new Array();        for (i = 0; i < MainImage.length; i++) {            g = findObject(MainImage[i]);            gg = g.src;            g.mainimg = g.src;            tu = gg.lastIndexOf(".");            g.mainimgo = gg.substring(0, tu) + document.ImageOver + gg.substring(tu, gg.length);            g.mainimgd = gg.substring(0, tu) + document.ImageDown + gg.substring(tu, gg.length);            if (ImageProp[2] > 1) {                document.SwapOver[i] = new Image();                document.SwapOver[i].src = g.mainimgo;            }            if (ImageProp[2] > 0) {                if (ImageProp[2] == 3) {                    g.mainimgd = g.mainimgo;                }                document.SwapDown[i] = new Image();                document.SwapDown[i].src = g.mainimgd;            }        }        if ((g = findObject("ResetSensor")) != null) {            gg = (document.layers) ? g : g.style;            gg.visibility = "hidden";        }        if (dt && ImageProp[3] != "none" && !window.opera) {            g = document.getElementsByTagName("A");            for (i = 0; i < g.length; i++) {                if (g[i].hasChildNodes()) {                    el = g[i].firstChild;                    while (el) {                        if (el.nodeType == 3) {                            gg = el.nodeValue;                            if (ImageProp[3] == gg.replace("\n", "")) {                                g[i].className = ImageProp[4];                                break;                            }                        }                        el = el.firstChild;                    }                }            }        }        document.ImageBar = true;    }    function dropdownTrigger(bu) {        if (!document.ImageBar) {            return;        }        var i, g, d, dB = -1, tF = false, sF = false;        for (i = 0; i < SubMenu.length; i++) {            sF = false;            if ((g = findObject(SubMenu[i])) != null) {                g = findObject(SubMenu[i]);                gg = (document.layers) ? g : g.style;                sF = true;            }            d = findObject(MainImage[i]);            if (MainImage[i] == ImageProp[0]) {                dB = i;            }            if (MainImage[i] == bu) {                tF = true;                if (sF) {                    gg.visibility = "visible";                }                if (ImageProp[2] > 0) {                    if (i == dB) {                        d.src = d.mainimgd;                    } else {                        if (ImageProp[2] > 1) {                            d.src = d.mainimgo;                        }                    }                }                if ((g = findObject("ResetSensor")) != null) {                    gg = (document.layers) ? g : g.style;                    gg.visibility = "visible";                }            } else {                if (sF) {                    gg.visibility = "hidden";                }                if (ImageProp[2] > 0) {                    d.src = d.mainimg;                }            }        }        if (!tF) {            if (dB > -1) {                d = findObject(MainImage[dB]);                if ((g = findObject(SubMenu[dB])) != null &&                    ImageProp[1] == 0) {                    gg = (document.layers) ? g : g.style;                    gg.visibility = "visible";                }                if (ImageProp[2] > 0) {                    d.src = d.mainimgd;                }            }            if ((g = findObject("ResetSensor")) != null) {                gg = (document.layers) ? g : g.style;                gg.visibility = "hidden"            }        }    }