  b_01_off = new Image();
  b_01_off.src = "images/button_01_off.gif";
  b_01_on = new Image();
  b_01_on.src = "images/button_01_on.gif";
  b_02_off = new Image();
  b_02_off.src = "images/button_02_off.gif";
  b_02_on = new Image();
  b_02_on.src = "images/button_02_on.gif";
  b_03_off = new Image();
  b_03_off.src = "images/button_03_off.gif";
  b_03_on = new Image();
  b_03_on.src = "images/button_03_on.gif";
  b_04_off = new Image();
  b_04_off.src = "images/button_04_off.gif";
  b_04_on = new Image();
  b_04_on.src = "images/button_04_on.gif";
  b_05_off = new Image();
  b_05_off.src = "images/button_05_off.gif";
  b_05_on = new Image();
  b_05_on.src = "images/button_05_on.gif";
  b_06_off = new Image();
  b_06_off.src = "images/button_06_off.gif";
  b_06_on = new Image();
  b_06_on.src = "images/button_06_on.gif";
  b_07_off = new Image();
  b_07_off.src = "images/button_07_off.gif";
  b_07_on = new Image();
  b_07_on.src = "images/button_07_on.gif";


var Bildname, Bildobjekt;
function Bildwechsel(Bildname,Bildobjekt)
{
/*
        if (navigator.appName != "Netscape")
        {
                document.images[Bildname].src = Bildobjekt.src;
        }
        else
        {
                document.layers.background.document[Bildname].src = Bildobjekt.src;
        }
*/
}

function out01()
{
        if (navigator.appName != "Netscape")
        {
                document.images["wmodelle"].src = wmodelle_off.src;
        }
        else
        {
                document.layers.background.document["wmodelle"].src = wmodelle_off.src;
        }
}

/*

function ipgchange(imgname,imgsrc)
{
        imgname = new Image();
        imgname.src = "'images/'+imgsrc+'.jpg'";

        if (navigator.appName != "Netscape")
        {
                document.images[imgname].src = imgname.src;
        }
        else
        {
                document.layers.background.document[imgname].src = imgname.src;
        }
}

*/


/*
function fenster(url)
{
        meinFenster=window.open("","win",'toolbar=0, location=0, directories=0, status=1, menubar=1, resizable=1, width=550, height=500, dependent=1');
        url='<img src="'+url+'" alt="" border="0">'
        meinFenster.document.write(url);
        meinFenster.document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" onClick="window.close()">Bildfenster schliessen</a>');
}

*/

//                        neu **********************************************************************************
var neuesFenster = null;

function errorTrap() {return true;}
window.onerror = errorTrap;

function zeigen(Bild0,Titel0,Breite0,Hoehe0)
{
        Bild = 'images/'+Bild0+'.jpg';
        Titel = Titel0;
        Breite = Breite0;
        Hoehe = Hoehe0;

        zu();
        setTimeout("sichtbar()",1000);
}


function sichtbar()
{
        FensterBreite = Breite + 0;
        FensterHoehe = Hoehe + 0;
        Optionen =  '';
        Optionen += 'toolbar=0,';
        Optionen += 'location=0,';
        Optionen += 'directories=0,';
        Optionen += 'status=0,';
        Optionen += 'menubar=0,';
        Optionen += 'resizable=0,';
        Optionen += 'scrollbars=0,';
        Optionen += 'dependent=1'+ ',';
        Optionen += 'top=-1000,';
        Optionen += 'left=-1000,';
        //Optionen += 'screenX=,';
        //Optionen += 'screenY=,';

        //Optionen += 'width=700,';
        //Optionen += 'height=600';
        //Optionen += 'width='+ FensterBreite +',';
        //Optionen += 'height='+ FensterHoehe;

        neuesFenster = window.open('galerie.html','',Optionen);



        with (neuesFenster)
        {
                document.writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">');

                document.writeln('<html><head><title>' + Titel + '</title></head>');
                document.writeln('<body bgcolor="#000000" text="#FFFFFF" leftmargin=0 topmargin=0>');
                document.writeln('<table border="0" cellspacing="0" cellpadding="0" align="center" valign="middle"><tr><td>');
                document.writeln('<img src="'+Bild+'" width="'+Breite+'" height="'+Hoehe+'" border="0" alt="'+Titel+'">');
                document.writeln('</td></tr></table></body></html>');
        }
        neuesFenster.moveTo(screen.width/2 - FensterBreite/2,screen.height/2 - FensterHoehe/2 - 25);
        neuesFenster.resizeTo(FensterBreite,FensterHoehe);


}

function zu()
{
        if (neuesFenster != null)
                if (!neuesFenster.closed)
                        if (neuesFenster.close)
                                neuesFenster.close();
}
