document.write('</div>'); // relative
document.write('</div>'); // seite

document.write('<div id="nav_unten">\
<table border="0"><tr><td>');

var mp3s=new Array("001","100","101","102","103","104","105","200","1_201","1_202","1_205","1_206","1_208","1_209","1_210","1_211","1_212","1_222","1_223",
"1_226","1_227","1_229","1_231","1_232","1_233","1_235","1_240","1_241","1_242","2_0_200","2_1_200","2_1_201","2_1_202","2_1_207","2_1_208",                   
"2_1_209","2_1_210","2_1_211","2_1_212","2_1_213","2_1_219","2_1_220","2_1_221","2_1_222","2_2_200","2_2_201","2_2_202","2_2_208",                     
"2_2_209","2_2_210","2_2_211","2_2_212","2_2_213","2_2_214","2_2_215","2_2_216","2_2_217","2_2_218","2_2_219","2_2_220","2_2_221",                     
"2_2_222","2_2_223","2_2_224","2_2_225","2_2_226","2_2_227","2_2_228","2_2_229","2_2_230","2_2_231","2_2_232","2_3_200","2_3_201",                     
"2_3_202","2_3_203","2_3_204","2_3_205","2_3_206","2_3_209","2_3_210","2_3_211","2_3_212","2_3_213","2_3_214","2_3_215","2_3_216","2_3_218",                     
"2_3_219","2_3_220","2_3_221","2_3_223","2_3_224","2_3_225","2_3_226","2_3_227","2_3_230","2_3_232","2_3_233","2_4_200","2_4_201",                     
"2_4_202","2_4_207","2_4_208","2_4_209","2_4_210","2_4_211","2_4_212","2_4_213","2_4_214","2_4_215","2_4_222","2_4_223","2_4_224",                     
"2_4_225","2_4_226","2_4_227","2_4_228","2_5_200","2_5_201","2_5_206","2_5_212","2_5_213","2_5_214","2_5_215","2_5_216","2_5_217",                     
"2_5_221","2_5_222","2_5_223","2_5_224","2_5_226","2_5_227","2_5_228","2_5_229","2_5_230","2_5_231","2_5_232","2_6_200","2_6_201",                     
"2_6_202","2_6_204","2_6_205","2_6_206","2_6_209","2_6_210","2_6_211","2_6_212","2_6_213","2_6_214","2_6_215","2_6_216","323","324","325","326","327");

var mp3_name=relpath;
mp3_name=mp3_name.split("#hl_")[0];
if (mp3_name.substring(0,5)=="html/") mp3_name=mp3_name.substring(5);
	if (mp3_name.indexOf('?')!=-1) mp3_name=mp3_name.split('?')[0];
	mp3_name=mp3_name.substring(0,mp3_name.length-4);
var fl_ton=0;
for(var i=0; i<mp3s.length; i++ ) if (mp3s[i]==mp3_name) fl_ton=1;
var flashvars = {};

if (fl_ton==1) {
	var soundfile=mp3_name;
	document.write('<div id="ton2_swf"></div>');
	play(soundfile);
	}
else document.write('<a href="#" onclick="return false"><img src="'+path+'intranet/img/ton.gif" width="30" height="22" alt="Ton" title="Ton ein- oder ausschalten" /></a>');

document.write('</td><td><span style="margin-right:20px">Ton</span></td>\
<td><a href="'+xpath+'html/suchen.htm"><img src="'+path+'intranet/img/suchen.gif" width="27" height="22" alt="Suchen" title="Suchen" /></a></td><td><span  style="margin-right:20px"><a href="'+xpath+'html/suchen.htm">Suchen</a></span></td>\
<td><a href="javascript:window.print()"><img src="'+path+'intranet/img/drucken.gif" width="27" height="22" alt="Drucken" title="Drucken" /></a></td><td><span  style="margin-right:60px"><a href="javascript:window.print()">Drucken</a></span></td>\
<td><a href="javascript:move(-1)"><img src="'+path+'intranet/img/pfeil-l.gif" width="20" height="23" alt="Rückwärts blättern" title="Rückwärts blättern" align="absmiddle" style="margin-right:8px;margin-left:8px" /></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\
<a href="javascript:move(1)"><img src="'+path+'intranet/img/pfeil-r.gif" width="20" height="23" alt="Vorwärts blättern" title="Vorwärts blättern" align="absmiddle" style="margin-right:8px;margin-left:8px" /></a></td></tr></table>\
</div>');

   if (navigator.appVersion.indexOf("MSIE 6")!=-1 ||navigator.appVersion.indexOf("MSIE 5")!=-1) {
       var divs=document.getElementById("seite2").getElementsByTagName("div");
       var ymax=0;
       for(i=0; i<divs.length; i++) {
       	    var ys=divs[i].offsetHeight+divs[i].offsetTop;
       	    if (ys>ymax) ymax=ys;
       	    }
       document.write('<style type="text/css">#seite2 { height:'+ymax+'px; }</style>');
   }

   document.onkeydown=keydown;
   try{
   document.getElementById("seite").focus();
   }catch(e){}
   //if (navigator.appVersion.indexOf("MSIE ")!=-1) 
     res();
   
function keydown (e) {
   if (!e) e=window.event;
   if (e.which) keycode=e.which; 
   else if (e.keyCode)  keycode=e.keyCode;
   if (keycode==39) move(1);
   if (keycode==37) move(-1);
}

var h_merk=0, w_merk=0;

function res() {
   var h=getClientHeight();
   if (h!=h_merk) {
  	   h_merk=h;
  	   try{
         document.getElementById("seite").style.height = (h-35)+"px"; 	
     	 }catch(e){}
       }    	
   var w=getClientWidth();
   if (w!=w_merk) {
  	   w_merk=w;
  	   try{
         document.getElementById("nav_unten").style.width = w+"px"; 	
     	 }catch(e){}
       }    	
   setTimeout("res()", 100);
}

function getClientHeight()
{
   if (top.innerHeight) // all except Explorer
	return top.innerHeight;
   else if (document.documentElement && document.documentElement.clientHeight)	// Explorer 6 Strict Mode
	return document.documentElement.clientHeight;
   else if (document.body) // other Explorers
        return document.body.clientHeight;
   return 0;	
}

 
function play(mp3) {
    flashvars.soundfile = mp3;
    flashvars.conn_id=swf_id;
//    alert("play:"+swf_id);
	swfobject.embedSWF("ton2.swf", "ton2_swf", "30", "22", "8.0.0", false, flashvars);
//  getFlashMovie("ton2").playsound(mp3);
}
//q=window.open("");
//q.document.write(document.body.innerHTML);

function videopopup(v)
{
	var x=Math.floor(screen.width-600)/2;
	var y=Math.floor(screen.height-376)/2;
	play("");
	window.open(v, "video_gew", "height=376,width=600,left="+x+",right="+y);
}

function einfuehrung1()
{
    var xs=1024; var ys=820;
	if (screen.availHeight<820) { ys=screen.availHeight-47; xs=ys*1024/820; }

	var x=Math.floor(screen.availWidth-xs)/2;
	var y=Math.floor(screen.availHeight-ys)/3;
	if (x<0) x=0;
	if (y<0) y=0;
	try{play("");}catch(e){}
	
	window.open("video_einfuehrung.htm", "einf_gew", "height="+ys+",width="+xs+",resizable=yes,left="+x+",top="+y);
}

document.write('<script type="text/javascript" src="'+path+'hervorheb.js"></script>');

