if (document.images) {
        b1off = new Image(); b1off.src="/images/nav/01.gif";
        b2off = new Image(); b2off.src="/images/nav/02.gif";
        b3off = new Image(); b3off.src="/images/nav/03.gif";
        b4off = new Image(); b4off.src="/images/nav/04.gif";
        b5off = new Image(); b5off.src="/images/nav/05.gif";
        b6off = new Image(); b6off.src="/images/nav/06.gif";
        b7off = new Image(); b7off.src="/images/nav/07.gif";
        b8off = new Image(); b8off.src="/images/nav/08.gif";
        b9off = new Image(); b9off.src="/images/nav/09.gif";

        b1on = new Image(); b1on.src="/images/nav/01_on.gif";
        b2on = new Image(); b2on.src="/images/nav/02_on.gif";
        b3on = new Image(); b3on.src="/images/nav/03_on.gif";
        b4on = new Image(); b4on.src="/images/nav/04_on.gif";
        b5on = new Image(); b5on.src="/images/nav/05_on.gif";
        b6on = new Image(); b6on.src="/images/nav/06_on.gif";
        b7on = new Image(); b7on.src="/images/nav/07_on.gif";
        b8on = new Image(); b8on.src="/images/nav/08_on.gif";
        b9on = new Image(); b9on.src="/images/nav/09_on.gif";
        }

var buttonid = 0;
var nr = 0;

function change(num,func) {
        if (document.images) {
                   if(func == 1 && num != buttonid) document["nav"+num].src = eval("b" + num + "on.src");
                        if(func == 0 && num != buttonid) document["nav"+num].src = eval("b" + num + "off.src");
        }
        }

function prechange(nr) 
{
        buttonid = nr;
        if(buttonid != 0 && document["nav"+buttonid]) 
		{
			document["nav"+buttonid].src = eval("b" + buttonid + "on.src");
		}
}


        function forum(thid, id) {

ther = "/cgi-bin/forum/forum.cgi?thid="+thid+"&id="+id+"&action=print_preview";
window.open(ther,'druck','width=640,height=480,scrollbars=1,toolbar=0,menubar=1');

        }

        function article(thid, id) {

ther = "/cgi-bin/redaktion/trdbupdate.cgi?page=artikel&preview=print&htid="+thid+"&id="+id;
window.open(ther,'druck','width=640,height=480,scrollbars=1,toolbar=0,menubar=1');

        }
