window.document.name = "top";
var iframes = {
	1 : [ "menue-1","i1/1.html","i1/2.html","i1/3.html","i1/4.html" ],
	2 : [ "menue-2","i2/1.html","i2/2.html","i2/3.html" ],
	3 : [ "menue-3","i3/1.html","i3/2.html" ],
	4 : [ "menue-4","i4/1.html","i4/2.html","i4/3.html"],
	5 : [ "menue-1","i1/home.html","input/aktuell.html","input/aktuell.html"],
	6 : [ "","#66A6D1","#7FBA64","#EFA511","#E1EF45","#66A6D1"]
	};

function frame_wechsel(x,y){
	window.document.getElementById('navi_frame').src = iframes[x][y];
	window.document.getElementById('inhalt_1').style.borderColor = iframes[6][x];
	if(x != 5 && y != 1){	
	document.cookie = "javascript:frame_wechsel(" + x + "," + y + ")";
	}
var auswahl ="";
	for (var m=1; m<6; m++)
	{
	var z = 1;
	var menu_durchlf = iframes[m][0];
	var menu_ausgew = iframes[x][0];
	auswahl = window.document.getElementById(iframes[m][0]);
	for( var i=0; i< auswahl.childNodes.length; i++)
	{
		if (auswahl.childNodes[i].nodeType != 1) continue;
		if (auswahl.childNodes[i].firstChild.nodeName != "A") continue;
		 if(z == y &&  menu_durchlf == menu_ausgew && x !=5)
		{	auswahl.childNodes[i].firstChild.className = "bin";
		} else {
			auswahl.childNodes[i].firstChild.className = "";
		}
	z = z+1;
	}
	auswahl = "";
	}
 }
function frame_impressum()
 {
	window.document.getElementById('navi_frame').src = "input/impressum.html";
 }

window.onload = function()
 {
 if(document.cookie == ""){frame_wechsel(5,1);}else{ window.location.href = document.cookie;}
  window.document.getElementById('navi_frame').height = 100;
  Element.hide('termine');
	if(document.cookie == "javascript:frame_wechsel(1,4)"){Element.show('termine');}
 }

if (navigator.appName=="Netscape")
  {
    window.document.captureEvents (Event.KEYPRESS);
  }
window.document.onkeydown = taste;

function taste(evt)
  {
	if (navigator.appName=="Netscape")
    {
	if (evt.which == 116)
	{
	window.location.href = document.cookie;
	}
    }
   if (navigator.appName=="Microsoft Internet Explorer")
    {
	if (event.keyCode ==  116)
	{
	window.location.href = document.cookie;
	}
   }

 }
