function writeTop(){	
	document.write('<table border=0 cellpadding=0 cellspacing=0 width=100%>');
	document.write('  <tr>');
	document.write('    <td width=115><img src="' + pfad + 'pics/pcs/pc11.gif" width=115 height=95 border=0></td>');
	document.write('    <td width=599><img src="' + pfad + 'pics/pcs/pc12.gif" width=599 height=95 border=0></td>');
	document.write('    <td width=99% align=left style="background-image:url(' + pfad + 'pics/bg_top.gif)\;"><img src="' + pfad + 'pics/pcs/pc13.gif" width=100 height=95 border=0></td>');
	document.write('  </tr>');
	document.write('  <tr>');
	document.write('    <td width=115><img src="' + pfad + 'pics/pcs/pc21.gif" width=115 height=36 border=0></td>');
	document.write('    <td width=599 align=left>');
	document.write('    ');
	document.write('    <table border=0 cellpadding=0 cellspacing=0 width=599>');
	document.write('      <tr>');
	
	writeNavi();
	
	document.write('        <td><img src="' + pfad + 'pics/pcs/pc22.gif" width=59 height=36 border=0></td>');
	document.write('        <td><img src="' + pfad + 'pics/pcs/pc23.gif" width=11 height=36 border=0></td>');
	document.write('      </tr>');
	document.write('    </table>');
	document.write('    ');
	document.write('    </td>');
	document.write('    <td width=99% align=left><img src="' + pfad + 'pics/pcs/pc24.gif" width=100 height=36 border=0></td>');
	document.write('  </tr>');
	document.write('  <tr>');
	document.write('    <td width=115 class=smallest><img src="' + pfad + 'pics/pcs/pc31.gif" width=115 height=9 border=0></td>');
	document.write('    <td width=599 class=smallest>');
	document.write('    ');
	document.write('    <table border=0 cellpadding=0 cellspacing=0 width=599>');
	document.write('      <tr>');
	document.write('        <td width=2 class=smallest><img src="' + pfad + 'pics/rand.gif" width=2 height=9 border=0></td>');
	document.write('        <td width=586 class=smallest><img src="' + pfad + 'pics/pcs/pc32.gif" width=586 height=9 border=0></td>');
	document.write('        <td width=11 class=smallest valign=top><img src="' + pfad + 'pics/pcs/pc33.gif" width=11 height=9 border=0></td>');
	document.write('      </tr>');
	document.write('    </table>');
	document.write('    ');
	document.write('    </td>');
	document.write('    <td width=99% align=left class=smallest><img src="' + pfad + 'pics/spacer.gif" width=1 height=9 border=0></td>');
	document.write('  </tr>');
	document.write('  <tr>');
	document.write('    <td width=115><img src="' + pfad + 'pics/spacer.gif" width=115 height=391 border=0></td>');
	document.write('    <td width=599 class=smallest>');
	document.write('    ');
	document.write('    <table border=0 cellpadding=0 cellspacing=0 width=599>');
	document.write('      <tr>');
	document.write('        <td width=2><img src="' + pfad + 'pics/rand.gif" width=2 height=391 border=0></td>');
        document.write('        <td width=595 style="padding:10px;background-image:url(' + pfad + 'pics/pcs/pc42.gif)\;">');
}


function writeBottom(){
	var jetzt = new Date();
	discl_jahr = (jetzt.getFullYear()>2003)? "2003-" + jetzt.getFullYear():"2003";
	
        document.write('        </td>');
        document.write('        <td width=2><img src="' + pfad + 'pics/rand.gif" width=2 height=391 border=0></td>');
        document.write('      </tr>');
        document.write('      <tr>');
        document.write('        <td width=2><img src="' + pfad + 'pics/rand.gif" width=2 height=5 border=0></td>');
        document.write('        <td width=595><img src="' + pfad + 'pics/spacer.gif" width=595 height=5 border=0></td>');
        document.write('        <td width=2><img src="' + pfad + 'pics/rand.gif" width=2 height=5 border=0></td>');
        document.write('      </tr>');
        document.write('    </table>');
        document.write('    ');
        document.write('    </td>');
        document.write('    <td width=99% align=left class=smallest>&nbsp;<img src="' + pfad + 'pics/spacer.gif" width=1 height=9 border=0></td>');
        document.write('  </tr>');
        document.write('  <tr>');
        document.write('    <td width=115><img src="' + pfad + 'pics/spacer.gif" width=115 height=11 border=0></td>');
        document.write('    <td width=599 class=smallest>');
        document.write('    ');
        document.write('    <table border=0 cellpadding=0 cellspacing=0 width=599>');
        document.write('      <tr>');
        document.write('        <td width=11><img src="' + pfad + 'pics/pcs/pc51.gif" width=11 height=11 border=0></td>');
        document.write('        <td width=577><img src="' + pfad + 'pics/pcs/pc52.gif" width=577 height=11 border=0></td>');
        document.write('        <td width=11><img src="' + pfad + 'pics/pcs/pc53.gif" width=11 height=11 border=0></td>');
        document.write('      </tr>');
        document.write('    </table>');
        document.write('    ');
        document.write('    </td>');
        document.write('    <td width=99% align=left class=smallest>&nbsp;<img src="' + pfad + 'pics/spacer.gif" width=1 height=9 border=0></td>');
        document.write('  </tr>');
        document.write('</table>');
        document.write('<p></p><table border=0 cellpadding=0 cellspacing=0 width=100%>\n');
        document.write('  <tr><td bgColor="#CC0000"><img src="' + pfad + 'pics/spacer.gif" width=1 height=1 border=0></td></tr>\n');
        document.write('  <tr><td class=disclaimer><img src="' + pfad + 'pics/spacer.gif" width=115 height=1 border=0>&copy; ' + discl_jahr + ' by Dr. Matthias Wege +++ design by <a href="http://www.bergmanndesign.com" target="_blank">henning bergmann-design</a></td></tr>\n');
        document.write('</table>\n');
}

function writeNavi(){
	var selfurl=location.href.toLowerCase();
	
	for (i=0;i<btn_amount;i++){
//		alert('StatusText: ' + buttons[i][1] + '\nBild: btn' + i + '0.gif\nBreite: ' + buttons[i][2] + '\nHöhe: ' + buttons[i][3]);
		if (selfurl.indexOf(buttons[i][0])>=0){
			document.write('        <td><img src="' + pfad + 'pics/menu/btn' + i + '0.gif" width="' + buttons[i][2] + '" height="' + buttons[i][3] + '" border=0 name="btn' + i + '" alt="' + buttons[i][1] + '"></td>');
		} else {
			document.write('        <td><a href="' + pfad + buttons[i][0] + '" onMouseOver="swapImage(\'btn' + i + '\',\'' + pfad + 'pics/menu/btn' + i + '2.gif\');window.status=\'' + buttons[i][1] + '\';return true;" onMouseOut="restoreImage(\'btn' + i + '\');window.status=\'\';return true;"><img src="' + pfad + 'pics/menu/btn' + i + '1.gif" width="' + buttons[i][2] + '" height="' + buttons[i][3] + '" border=0 name="btn' + i + '" alt="' + buttons[i][1] + '"></a></td>');
		}
	}
}
