<!--
    /* Menuepunkt Impressum */
    $(document).ready(function() {
    	/*
        var html = $("a.menu_2:contains('Corporate/Legal Notice'),a.menu_2_a:contains('Corporate/Legal Notice')").parent().html();
        $("a.menu_2:contains('Corporate/Legal Notice'),a.menu_2_a:contains('Corporate/Legal Notice')").parent().parent().remove();
        $("div.bottom_r").html(html);
        */
    });
    
    /* Menuepunkt Intern */
    $(document).ready(function() {
    	/*
        $("a.language[href*='English']").attr("href", $("a.menu_2:contains('Intern'),a.menu_2_a:contains('Intern')").attr("href"));
        $("img.language[src*='English']").attr("src", "http://www.technopor.com/img/fahnen/fahne_Intern.gif").css("padding-left", "8px");
		*/
		/*
        var html = $("a.menu_2:contains('Intern'),a.menu_2_a:contains('Intern')").parent().html();
        $("a.menu_2:contains('Intern'),a.menu_2_a:contains('Intern')").parent().parent().remove();
        */
    });

    /* Fuege Steinchen zu den Untermenues hinzu */
    $(document).ready(function() {
        $("div.menu_4_i").html('<img class="menu_4_a" src="/img/steinchen.png" border="0" align="absmiddle" />');
    });

    function $$(id)
    {
        return document.getElementById(id);
    }

    var hide_duration = 666;

    function start_AtoB(lid)
    {
        $("div#technoBox1").animate({
            top: "207px"
        }, hide_duration);

        $("div#technoBox1url").animate({
            top: "207px"
        }, hide_duration);

        $("div#technoBox2").animate({
            top: "207px"
        }, hide_duration, "swing",
            function () {
                changeBox_AtoB(lid);
            }
        );

        $("div#technoBox2url").animate({
            top: "207px"
        }, hide_duration);
      }

    function changeBox_AtoB(lid)
    {
        var temp = $$("technoBox1url").innerHTML;
        $$("technoBox1url").innerHTML = $$("technoBox2url").innerHTML;
        $$("technoBox2url").innerHTML = temp;

//        $$("technoBox1").style.background = "url('http://www.technopor.com/img/animation_{LANGUAGEID}/01_"+box2+".png') no-repeat";
//        $$("technoBox2").style.background = "url('http://www.technopor.com/img/animation_{LANGUAGEID}/02_"+box1+".png') no-repeat";

//				alert ('I: '+"http://www.technopor.com/img/animation_"+lid+"/01_"+box2+".png");

        $$("technoBox1").style.background = "url('/img/animation_"+lid+"/01_"+box2+".png') no-repeat";
        $$("technoBox2").style.background = "url('/img/animation_"+lid+"/02_"+box1+".png') no-repeat";

        fix_PNGs();

        var temp = box1;
        box1 = box2;
        box2 = temp;

        $$("areaA").alt = $$("areaA").title = ""+BoxTitel[box1]+"";
        $$("areaB").alt = $$("areaB").title = ""+BoxTitel[box2]+"";

        $("div#technoBox1, div#technoBox1url").animate({
            top: "115px"
        }, hide_duration );
        $("div#technoBox2, div#technoBox2url").animate({
            top: "115px"
        }, hide_duration );

        setTimeout("jumpToBox('"+box1+"')", hide_duration);
    }

      function start_AtoC(lid)
    {
        $("div#technoBox1").animate({
            top: "207px"
        }, hide_duration);

        $("div#technoBox1url").animate({
            top: "207px"
        }, hide_duration);

        $("div#technoBox3").animate({
            top: "207px"
        }, hide_duration, "swing",
            function () {
                changeBox_AtoC(lid);
            }
        );

        $("div#technoBox3url").animate({
            top: "207px"
        }, hide_duration);
    }

      function changeBox_AtoC(lid)
    {
        var temp = $$("technoBox1url").innerHTML;
        $$("technoBox1url").innerHTML = $$("technoBox3url").innerHTML;
        $$("technoBox3url").innerHTML = temp;

//        $$("technoBox1").style.background = "url('http://www.technopor.com/img/animation_{LANGUAGEID}/01_"+box3+".png') no-repeat";
//        $$("technoBox3").style.background = "url('http://www.technopor.com/img/animation_{LANGUAGEID}/03_"+box1+".png') no-repeat";
        $$("technoBox1").style.background = "url('/img/animation_"+lid+"/01_"+box3+".png') no-repeat";
        $$("technoBox3").style.background = "url('/img/animation_"+lid+"/03_"+box1+".png') no-repeat";

        fix_PNGs();

        var temp = box1;
        box1 = box3;
        box3 = temp;

        $$("areaA").alt = $$("areaA").title = ""+BoxTitel[box1]+"";
        $$("areaC").alt = $$("areaC").title = ""+BoxTitel[box3]+"";

        $("div#technoBox1, div#technoBox1url").animate({
            top: "115px"
        }, hide_duration );
        $("div#technoBox3, div#technoBox3url").animate({
            top: "115px"
        }, hide_duration );

        setTimeout("jumpToBox('"+box1+"')", hide_duration);
    }

    function jumpToBox(boxName)
    {
        switch(boxName)
        {
            case 'blau':
                window.location.href = $$('link_menue_1').href;
                break;
            case 'grau':
                window.location.href = $$('link_menue_2').href;
                break;
            case 'gruen':
                window.location.href = $$('link_menue_3').href;
                break;
        }
    }

    function fix_PNGs() {
        var badBrowser = (/MSIE ((5\.5)|6)/.test(navigator.userAgent) && navigator.platform == "Win32");
           if(badBrowser)
           {
            $("div").each(function() {
                var img = $(this).css("background-image");
                if(img != null)
                {
                    var img_parts = img.split('"');
                    if(img_parts[1] != null && !img_parts[1].match(/\bblank.gif\b/g))
                    {
                        $(this).css("background-image", "url('"+blank.src+"')");
                        this.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + img_parts[1] + "',sizingMethod='scale')";
                    }
                }
            });
        }
    }

    var blank = new Image();
     blank.src = '/img/blank.gif';

    $(document).ready(function() {
        fix_PNGs();
    });
-->

