function docwritemenu(pathlevel,menuname) {

var pathlev1='';
for (var i=1;i<pathlevel;i++) {pathlev1+='../'}
var pathlev0=pathlev1+'../';

docw('<div class="menu1"><A href="'+pathlev1+'index.html" target="_top">AdventureTexte</A><br></div>');

docw('<div class="menu2"><A href="'+pathlev1+'ankh/ankh.htm" TARGET="_top"><b>A</b>nkh 1</A><br></div>');
docw('<div class="menu2"><A href="'+pathlev1+'ankh2/ankh2.htm" TARGET="_top"><b>A</b>nkh 2</A><br></div>');
docw('<div class="menu2"><A href="'+pathlev1+'ankh3/ankh3.htm" TARGET="_top"><b>A</b>nkh 3</A><br></div>');
docw('<div class="menu2"><A href="'+pathlev1+'dreamfall/dreamfall.htm" TARGET="_top"><b>D</b>reamfall</A><br></div>');
docw('<div class="menu2"><xA href="'+pathlev1+'jackkeane/jackkeane.htm" TARGET="_top"><b>J</b>ack Keane</A><br></div>');
docw('<div class="menu2"><A href="'+pathlev1+'keepsake/keepsake.htm" TARGET="_top"><b>K</b>eepsake</A><br></div>');
docw('<div class="menu2"><A href="'+pathlev1+'tlj/tlj.htm" TARGET="_top"><b>L</b>ongest Journey</A><br></div>');
docw('<div class="menu2"><A href="'+pathlev1+'tmos/tmos.htm" TARGET="_top"><b>M</b>oment of Silence</A><br></div>');
docw('<div class="menu2"><A href="'+pathlev1+'monkey4/monkey4.htm" TARGET="_top"><b>M</b>onkey Island 4</A><br></div>');
docw('<div class="menu2"><A href="'+pathlev1+'exile/exile.htm" TARGET="_top"><b>M</b>yst Exile</A><br></div>');
docw('<div class="menu2"><A href="'+pathlev1+'myst4/myst4.htm" TARGET="_top"><b>M</b>yst Revelation</A><br></div>');
docw('<div class="menu2"><A href="'+pathlev1+'myst5/myst5.htm" TARGET="_top"><b>M</b>yst End Of Ages</A><br></div>');
docw('<div class="menu2"><A href="'+pathlev1+'nibiru/nibiru.htm" TARGET="_top"><b>N</b>ibiru</A><br></div>');
docw('<div class="menu2"><A href="'+pathlev1+'paradise/paradise.htm" TARGET="_top"><b>P</b>aradise</A><br></div>');
docw('<div class="menu2"><A href="'+pathlev1+'runaway2/runaway2.htm" TARGET="_top"><b>R</b>unaway 2</A><br></div>');
docw('<div class="menu2"><xA href="'+pathlev1+'runaway3/runaway3.htm" TARGET="_top"><b>R</b>unaway 3</A> <img src="'+pathlev0+'libs/picstarlightgrey.gif"><br></div>');
//docw('<div class="menu2n"><img src="'+pathlev0+'libs/picstarnew.gif"><A href="'+pathlev1+'runaway3/runaway3.htm" TARGET="_top"><b>R</b>unaway 3</A><br></div>');
docw('<div class="menu2"><A href="'+pathlev1+'dvo/dvo.htm" TARGET="_top"><b>S</b>4 Das Dunkle Volk</A><br></div>');
docw('<div class="menu2"><A href="'+pathlev1+'tro/tro.htm" TARGET="_top"><b>S</b>4 Die Trojaner</A><br></div>');
//docw('<div class="menu2"><xA href="'+pathlev1+'soblonde/soblonde.htm" TARGET="_top"><b>S</b>o Blonde</A><br></div>');
docw('<div class="menu2"><A href="'+pathlev1+'soblonde/soblonde.htm" TARGET="_top"><b>S</b>o Blonde</A> <img src="'+pathlev0+'libs/picstarlightgrey.gif"><br></div>');
docw('<div class="menu2"><A href="'+pathlev1+'syberia1/syberia1.htm" TARGET="_top"><b>S</b>yberia 1</A><br></div>');
docw('<div class="menu2"><A href="'+pathlev1+'syberia2/syberia2.htm" TARGET="_top"><b>S</b>yberia 2</A><br></div>');
docw('<div class="menu2"><A href="'+pathlev1+'ttough/ttough.htm" TARGET="_top"><b>T</b>ony Tough 1</A><br></div>');
//docw('<div class="menu2"><xA href="'+pathlev1+'ttough2/ttough2.htm" TARGET="_top"><b>T</b>ony Tough 2</A><br></div>');
docw('<div class="menu2"><A href="'+pathlev1+'tunguska/tunguska.htm" TARGET="_top"><b>T</b>unguska</A><br></div>');
docw('<div class="menu2"><A href="'+pathlev1+'vampyre/vampyre.htm" TARGET="_top"><b>V</b>ampyre Story</A><br></div>');
docw('<div class="menu2"><A href="'+pathlev1+'west/west.htm" TARGET="_top"><b>W</b>esterner</A><br></div>');

docw('<div class="menu1"><A href="'+location.pathname+'" target="_top" title="Standard-Spoilerschutz" alt="Standard-Spoilerschutz">Darstellung</A><br></div>');
docw('<div class="menu2"><A HREF="'+location.pathname+'?mod=O" TARGET="_top" title="praktisch nur die Kapitelbilder" alt="praktisch nur die Kapitelbilder">Kapitel</A><br></div>');
docw('<div class="menu2"><A HREF="'+location.pathname+'?mod=A" TARGET="_top" title="nur die Absatzüberschrift, Frage oder Thema" alt="nur die Absatzüberschrift, Frage oder Thema">Absätze</A><br></div>');
docw('<div class="menu2"><A HREF="'+location.pathname+'" TARGET="_top" title="Grundform: Alles anzeigen - Verräterisches mit reversen Worten" alt="Grundform: Alles anzeigen - Verräterisches mit reversen Worten">Reverstext</A><br></div>');
docw('<div class="menu2"><A HREF="'+location.pathname+'?mod=K" TARGET="_top" title="Alles sofort lesbar anzeigen. Für alle, denen Spoiler egal sind." alt="Alles sofort lesbar anzeigen. Für alle, denen Spoiler egal sind.">Klartext</A><br></div>');

docw('<div class="menu1"><A href="'+pathlev1+'index.html" target="_top">Sonstiges</A><br></div>');

docw('<div class="menu2"><A HREF="'+pathlev0+'index.html" TARGET="_top">TacimedesHome</A><br></div>');
docw('<div class="menu2"><A HREF="'+pathlev1+'mainlink.htm" TARGET="_top">AdventureLinks</A><br></div>');
docw('<div class="menu2"><A HREF="'+pathlev1+'mainimpr.htm" TARGET="_top">Impressum</A><br></div>');
//http:// wird in URL-Parameterübergabe nicht vertragen, deshalb mit replace herausfischen:
//docw('<div class="menu2"><A HREF="http://tacimedes.de/gbuch/index.php?mod=T&thr='+document.title+'&ref='+document.URL.replace(/http:\/\//,"//")+'" TARGET="_top">Kommentare</A><br></div>');
//docw('<div class="menu2"><A HREF="http://tacimedes.de/gbuch/index.php?mod=F&frm=Adventuretexte&ref='+document.URL.replace(/http:\/\//,"//")+'" TARGET="_top">Miniforum</A><br></div>');
docw('<div class="menu2"><A HREF="mailto:webmaster'+String.fromCharCode(64)+'tacimedes.de?subject=Anmerkung%20zur%20Seite:%20' + document.title+ '&body=">Mail</A></div>');

var b=document.URL.lastIndexOf("/");
if (b<=8) b=document.URL.lastIndexOf("\\");
var docnam=document.URL.substring(b+1,document.URL.lastIndexOf("."));  
var statcode="K4B";


if (statcode!="") {
  docw('<div class="menu3">');
  docw('<br><br><br><br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');
  docw('<a href="http://s06.flagcounter.com/more/'+statcode+'"><img src="http://s06.flagcounter.com/count/'+statcode+'/bg=d0d0d0/txt=d0d0d0/border=d0d0d0/columns=1/maxflags=248/viewers=Visitors+AdvTxt/labels=0/" xxwidth=128 title="Neustart Seitenzähler 17/Feb/10" alt="Neustart Seitenzähler 17/Feb/10" border="0"></a>'); 
  docw('</a><br></div>');
}

docw('</table>');
}



