            var aktiv = new Array(0,0,0,0,0,0,0,0,0,0);
            var aktivd = new Array(0,0,0,0,0,0,0,0,0,0);
            var bild1_aktiv = 0;
            var maktiv = new Array(0,0,0,0,0,0,0,0,0,0);
            var z = 0;
            var aktiv_prod = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
            var aktiv_prod1 = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
            var aktiv_prod2 = new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
            var scroll = "off";
            var firma_out = new Array("produktion", "Kosmetikstudio", "Lager", "Shop", "Hochregallager", "Verwaltung", "Produktion3");
            var firma_bild = new Array("Firma-Produktion1.jpg", "Firma-Slim&Fun.jpg", "Firma-Lager-Produktion2.jpg", "Firma-Shop.jpg", "Firma-Hochregallager.jpg", "Firma-Buero.jpg", "Firma-Produktion-3.jpg");
            function set_firma_all_inaktiv()
            {
                for (x = 0; x < 7; x++)
                {
                    set_firma_inaktiv(firma_out[x]);
                }
                document.getElementById("firmabild").src = "/itemacms/content/files/unternehmen/firma.jpg";
            }
            function set_firma_aktiv(id)
            {
                for (x = 0; x < 7; x++)
                {
                    if (firma_out[x] != id)
                    {
                        set_firma_inaktiv(firma_out[x]);
                    }
                    else
                    {
                        var checkvar = x;
                    }
                }
                document.getElementById(id).style.visibility = "visible";
                document.getElementById("firmabild").src = "/itemacms/content/files/unternehmen/" + firma_bild[checkvar];
            }
            function set_firma_inaktiv(id)
            {
                document.getElementById(id).style.visibility = "hidden";
                document.getElementById("firmabild").src = "/itemacms/content/files/unternehmen/firma.jpg";
            }
            function shopfinder()
            {
                window.open("/cms/shopfinder2.asp", "Shopfinder", "width=1000,height=650,top=100,left=100,menubar=no,resizable=no,scrollbars=no,toolbar=no,status=no");
            }
            function set_aktiv()
            {
                document.getElementById("laender").style.visibility = "visible";
            }
            function set_inaktiv()
            {
                document.getElementById("laender").style.visibility = "hidden";
            }
            function kill_all_p(id)
            {
                for (x = 0;x < 30; x++)
                {
                    if (document.getElementById("pb" + x) != null)
                    {
                        if (x != id)
                        {
                            prod_out1("pb"+x);
                        }
                    }
                }
            }
            function prod_in(id)
            {
                id = id.id;
                tmpid = id.substring(2,id.length);
                if (aktiv_prod2[tmpid] != 1)
                {
                //    alert("in");
                    aktiv_prod2[tmpid] = 1;
                    kill_all_p(tmpid);
                    tmpid = id.substring(2,id.length);
                    var tmp = document.getElementById(id).src;
                    var laenge = tmp.length;
                    tmp = parseInt(document.getElementById(id).offsetWidth) / parseInt(document.getElementById(id).offsetHeight);
                    window.clearInterval(aktiv_prod1[tmpid]);
                    aktiv_prod[tmpid] = window.setInterval("prod_move_in('"+id+"','"+tmp+"')",1);
                }
            }
            function prod_move_in(id, tmp)
            {
                tmpid = id.substring(2,id.length);
                if (parseInt(document.getElementById(id).offsetWidth) < 85)
                {
                    document.getElementById(id).style.width = parseInt(document.getElementById(id).offsetWidth) + 1 + "px";
                    document.getElementById(id).style.height = (parseInt(document.getElementById(id).offsetWidth)/tmp) + "px";
                }
                else
                {
                    window.clearInterval(aktiv_prod[tmpid]);
                    aktiv_prod2[tmpid] = 0;
                }
            }
            function prod_move_out(id, tmp)
            {
                tmpid = id.substring(2,id.length);
                if (parseInt(document.getElementById(id).offsetWidth) > 65)
                {
                    document.getElementById(id).style.width = parseInt(document.getElementById(id).offsetWidth) -1 + "px";
                    document.getElementById(id).style.height = (parseInt(document.getElementById(id).style.width)/tmp) + "px";
                }
                else
                {

                    window.clearInterval(aktiv_prod1[tmpid]);
                    aktiv_prod2[tmpid] = 0;
                }
            }
            function prod_out(id)
            {
                id = id.id;
                tmpid = id.substring(2,id.length);
                if (aktiv_prod2[tmpid] != 2)
                {
                    aktiv_prod2[tmpid] = 2;
                    tmpid = id.substring(2,id.length);
                    var tmp = document.getElementById(id).src;
                    var laenge = tmp.length;
                    tmp = parseInt(document.getElementById(id).offsetWidth) / parseInt(document.getElementById(id).offsetHeight);
                    window.clearInterval(aktiv_prod[tmpid]);
                    aktiv_prod1[tmpid] = window.setInterval("prod_move_out('"+id+"','"+tmp+"')",1);
                    for (x = 0;x < 30; x++)
                    {
                        if (document.getElementById("pb" + x) != null)
                        {
                            if (x != tmpid)
                            {
                                tmp1 = document.getElementById("pb"+x).src;
                                laenge = tmp1.length;
                                tmp1 = tmp1.substring(0,laenge-5);
                                document.getElementById("pb"+x).src = tmp1 + ".jpg";
                            }
                        }
                    }
                }
            }
            function prod_out1(id)
            {
                tmpid = id.substring(2,id.length);
                if (aktiv_prod2[tmpid] == 0)
                {
                //    alert(id);
                    aktiv_prod2[tmpid] = 2;
                    tmpid = id.substring(2,id.length);
                    var tmp = document.getElementById(id).src;
                    var laenge = tmp.length;
                    tmp = tmp.substring(0,laenge-4);
                    document.getElementById(id).src = tmp + "1.jpg";
                    tmp = parseInt(document.getElementById(id).offsetWidth) / parseInt(document.getElementById(id).offsetHeight);
                    window.clearInterval(aktiv_prod[tmpid]);
                    aktiv_prod1[tmpid] = window.setInterval("prod_move_out('"+id+"','"+tmp+"')",1);
                }
                else
                {
                    var tmp = document.getElementById(id).src;
                    var laenge = tmp.length;
                    tmp = tmp.substring(0,laenge-4);
                    document.getElementById(id).src = tmp + "1.jpg";
                }
            }
            function myin(id)
            {
                document.getElementById(id).style.visibility = "visible";
                var x = id.split("m")[1];
                document.getElementById("l"+x).style.backgroundImage = "url(/itemacms/template/img/bg-menu1-h.jpg)";
                document.getElementById("l"+x).style.backgroundRepeat = "repeat-x";
                document.getElementById("l"+x).style.color = "#78b315";
            }
            function myout(id)
            {
                document.getElementById(id).style.visibility = "hidden";
                var x = id.split("m")[1];
                document.getElementById("l"+x).style.backgroundImage = "url(/itemacms/template/img/bg-menu1.jpg)";
                document.getElementById("l"+x).style.backgroundRepeat = "no-repeat";
                document.getElementById("l"+x).style.color = "#FFFFFF";
            }
            function moveup(id, bild)
            {
                var x = id.split("b")[1];
                if ((maktiv[x] == 0) && (parseInt(document.getElementById(id).style.top) >= (-108)))
                {
                    z++;
                    if (x == 1)
                    {
                        movedown('b2','t-kg.jpg');
                        movedown('b3','t-at.jpg');
                        movedown('b4','t-ad.jpg');
                    }
                    if (x == 2)
                    {
                        movedown('b1','t-rg.jpg');
                        movedown('b3','t-at.jpg');
                        movedown('b4','t-ad.jpg');
                    }
                    if (x == 3)
                    {
                        movedown('b1','t-rg.jpg');
                        movedown('b2','t-kg.jpg');
                        movedown('b4','t-ad.jpg');
                    }
                    if (x == 4)
                    {
                        movedown('b1','t-rg.jpg');
                        movedown('b2','t-kg.jpg');
                        movedown('b3','t-at.jpg');
                    }
                    maktiv[x] = 1;
                    window.clearInterval(aktiv[x]);
                    aktiv[x] = window.setInterval("moveup1('"+id+"')",1);
                    document.getElementById(id).style.backgroundImage = "url(/itemacms/template/img/"+bild+")";
                    document.getElementById(id).style.paddingTop = "0px";
                }
            }
            function moveup1(id)
            {
                var x = id.split("b")[1];
                if (maktiv[x] == 1)
                {
                    document.getElementById(id).style.height = "109px";
                    document.getElementById(id).style.borderWidth = "0px";
                    document.getElementById(id).style.top = (parseInt(document.getElementById(id).style.top) -6) + "px";
                    document.getElementById(id).style.height = (parseInt(document.getElementById(id).style.height) +6) + "px";
                    if ((parseInt(document.getElementById(id).style.top)+109) < 1)
                    {
                        document.getElementById(id).style.top = "-109px";
                        document.getElementById(id).style.height = "218px";
                        window.clearInterval(aktiv[x]);
                        maktiv[x] = 0;
                    }
                }
            }
            function movedown(id,bild)
            {
                var x = id.split("b")[1];
                if ((maktiv[x] != 2) && (parseInt(document.getElementById(id).style.top) < 0))
                {
                    maktiv[x] = 2;
                    window.clearInterval(aktivd[x]);
                    aktivd[x] = window.setInterval("movedown1('"+id+"','"+bild+"')",1);
                }
            }
            function movedown1(id,bild)
            {
                var x = id.split("b")[1];
                if ((parseInt(document.getElementById(id).style.top) < 0) && ((maktiv[x] == 2)))
                {
                    if (parseInt(document.getElementById(id).style.height) < 5)
                    {
                        document.getElementById(id).style.height = "0px";
                        document.getElementById(id).style.top = "0px";
                    }
                    else
                    {
                        document.getElementById(id).style.height = (parseInt(document.getElementById(id).style.height) -6) + "px";
                        document.getElementById(id).style.top = (parseInt(document.getElementById(id).style.top) +6) + "px";
                    }
                    if (parseInt(document.getElementById(id).style.top) >= 0)
                    {
                        document.getElementById(id).style.borderWidth = "1px";
                        document.getElementById(id).style.top = "0px";
                        document.getElementById(id).style.height = "0px";
                        window.clearInterval(aktivd[x]);
                        document.getElementById(id).style.backgroundImage = "url(/itemacms/template/img/" + bild + ")";
                    document.getElementById(id).style.paddingTop = "112px";
                        maktiv[x] = 0;
                    }
                }
            }
            function kill_all()
            {
                movedown('b1','t-rg.jpg');
                movedown('b2','t-kg.jpg');
                movedown('b3','t-at.jpg');
                movedown('b4','t-ad.jpg');
            }

            function scroll_right()
            {
                document.getElementById("produktscroll").scrollLeft = document.getElementById("produktscroll").scrollLeft+2;
                if (scroll == "on")
                {
                     window.setTimeout(scroll_right, 1);
                }
            }
            function scroll_left()
            {
                document.getElementById("produktscroll").scrollLeft = document.getElementById("produktscroll").scrollLeft-2;
                if (scroll == "on")
                {
                     window.setTimeout(scroll_left, 1);
                }
            }
            function scroll_right1()
            {
                if(checkBrowserName('MSIE'))
                {
                    document.getElementById("produktscroll1").scrollLeft = document.getElementById("produktscroll1").scrollLeft+10;
                }
                else
                {
                    document.getElementById("produktscroll1").scrollLeft = document.getElementById("produktscroll1").scrollLeft+2;
                }
                if (scroll == "on")
                {
                     window.setTimeout(scroll_right1, 1);
                }
            }
            function scroll_left1()
            {
                if(checkBrowserName('MSIE'))
                {
                    document.getElementById("produktscroll1").scrollLeft = document.getElementById("produktscroll1").scrollLeft-10;
                }
                else
                {
                    document.getElementById("produktscroll1").scrollLeft = document.getElementById("produktscroll1").scrollLeft-2;
                }
                if (scroll == "on")
                {
                     window.setTimeout(scroll_left1, 1);
                }
            }
            function scroll_right2()
            {
                if(checkBrowserName('MSIE'))
                {
                    document.getElementById("produktscroll1_100").scrollLeft = document.getElementById("produktscroll1_100").scrollLeft+10;
                }
                else
                {
                    document.getElementById("produktscroll1_100").scrollLeft = document.getElementById("produktscroll1_100").scrollLeft+2;
                }
                if (scroll == "on")
                {
                     window.setTimeout(scroll_right2, 1);
                }
            }
            function scroll_left2()
            {
                if(checkBrowserName('MSIE'))
                {
                    document.getElementById("produktscroll1_100").scrollLeft = document.getElementById("produktscroll1_100").scrollLeft-10;
                }
                else
                {
                    document.getElementById("produktscroll1_100").scrollLeft = document.getElementById("produktscroll1_100").scrollLeft-2;
                }
                if (scroll == "on")
                {
                     window.setTimeout(scroll_left2, 1);
                }
            }
            function scroll_right3()
            {
                if(checkBrowserName('MSIE'))
                {
                    document.getElementById("produktscroll_100").scrollLeft = document.getElementById("produktscroll_100").scrollLeft+10;
                }
                else
                {
                    document.getElementById("produktscroll_100").scrollLeft = document.getElementById("produktscroll_100").scrollLeft+2;
                }
                if (scroll == "on")
                {
                     window.setTimeout(scroll_right3, 1);
                }
            }
            function scroll_left3()
            {
                if(checkBrowserName('MSIE'))
                {
                    document.getElementById("produktscroll_100").scrollLeft = document.getElementById("produktscroll_100").scrollLeft-10;
                }
                else
                {
                    document.getElementById("produktscroll_100").scrollLeft = document.getElementById("produktscroll_100").scrollLeft-2;
                }
                if (scroll == "on")
                {
                     window.setTimeout(scroll_left3, 1);
                }
            }
            function prod_ueber_out(id)
            {
                    var tmp = id.src;
                    var laenge = tmp.length;
                    tmp = tmp.substring(0,laenge-4);
                    id.src = tmp + "1.jpg";

            }
            function prod_ueber_in(id)
            {
                    var tmp = id.src;
                    var laenge = tmp.length;
                    tmp = tmp.substring(0,laenge-5);
                    id.src = tmp + ".jpg";
            }
            function checkBrowserName(name)
            {
                var agent = navigator.userAgent.toLowerCase();
                if (agent.indexOf(name.toLowerCase())>-1)
                {
                    return true;
                }
                return false;
            }
