
    function PictureOver(imgName) {
        if (document.images) {
            document.Picture.src = imgName;
        }
        else {
            document['Picture'].src = imgName;
        }
    }

        function TextOver(text) {
                //if IE 4+
                if (document.all)
                TitleText.innerHTML = text;
                //else if NS 4
                else if (document.layers){
                text = "<div class=PictureTextNS4>" + text + "</div>";
                document.ns4TitleText.document.ns4TitleText2.document.write(text);
                document.ns4TitleText.document.ns4TitleText2.document.close();
                }
                //else if NS 6 (supports new DOM)
                else if (document.getElementById){
                        rng = document.createRange();
                        el = document.getElementById("TitleText");
                        rng.setStartBefore(el);
                        htmlFrag = rng.createContextualFragment(text);
                        while (el.hasChildNodes())
                        el.removeChild(el.lastChild);
                        el.appendChild(htmlFrag);
                }
        }

        function ChangeBild(bild) {
            //if IE 4+
            if (document.all) {
                if (!document.Bild) CreateBox(bild);
                Bild.src = bild
            }
            //else if NS 6 (supports new DOM)
            else if (document.getElementById) {
                if (!document.getElementById('Bild')) CreateBox(bild);
                el = document.getElementById('Bild');
                el.src = bild
            }
        }

        function CreateBox(bild) {
            text = '<table cellspacing="0" cellpadding="0" align="center" style="border: 1px solid #000000;"><tr><td><img id="Bild" width="140" height="140"></td></tr></table>';
            //if IE 4+
            if (document.all)
            BildSpan.innerHTML = text;
            //else if NS 6 (supports new DOM)
            else if (document.getElementById){
                rng = document.createRange();
                el = document.getElementById("BildSpan");
                rng.setStartBefore(el);
                htmlFrag = rng.createContextualFragment(text);
                while (el.hasChildNodes())
                el.removeChild(el.lastChild);
                el.appendChild(htmlFrag);
            }
        }

    function OpenWindow(name,x,y) {
        Zoom = window.open('', 'zoom', 'toolbars=0, scrollbars=no, location=0, statusbars=0, menubars=0, resizable=0, width='+x+', height='+y);
        Zoom.document.write('<html>');
        Zoom.document.write('<style> body {margin:0;padding:0;} </style>');
        Zoom.document.write('<body>');
        Zoom.document.write('<a href="javascript:this.window.close()">');
        Zoom.document.write('<img border=0 height='+y+' width='+x+' src="'+name+'">');
        Zoom.document.write('</a></body></html>');
    }

        function ChangeAll(text,kbild,gbild,gbildsize) {
            ChangeText(text);
            bild = "pictures/projekte/details/"+kbild;
            ChangeBild(bild);
            bildg = "pictures/projekte/details/gross/"+gbild
            ChangeLink(bildg,gbildsize);
        }

        function ChangeLink(bild,size){
            //if IE 4+
            link = "javascript:OpenWindow('"+bild+"',"+size+");";
            if (document.all) {
                BildLink.href = link;
            }
            //else if NS 6 (supports new DOM)
            else if (document.getElementById) {
                el = document.getElementById('BildLink');
                el.href = link
            }
        }

        function ChangeText(text) {
                //if IE 4+
                if (document.all && BildText) {
                     BildText.innerHTML = text;
                }
                //else if NS 6 (supports new DOM)
                else if (document.getElementById && document.getElementById('BildText')){
                    rng = document.createRange();
                    el = document.getElementById('BildText');
                    rng.setStartBefore(el);
                    htmlFrag = rng.createContextualFragment(text);
                    while (el.hasChildNodes())
                    el.removeChild(el.lastChild);
                    el.appendChild(htmlFrag);
                }
        }