if (document.images) {

BttNorm = new Array();
BttOver = new Array();

BttNorm[0]  = new Image();BttNorm[0].src  = "img/home_bttn.gif"
BttOver[0]  = new Image();BttOver[0].src  = "img/home_bttn-over.gif"
BttNorm[1]  = new Image();BttNorm[1].src  = "img/person_bttn.gif"
BttOver[1]  = new Image();BttOver[1].src  = "img/person_bttn-over.gif"
BttNorm[2]  = new Image();BttNorm[2].src  = "img/kanzlei_bttn.gif"
BttOver[2]  = new Image();BttOver[2].src  = "img/kanzlei_bttn-over.gif"
BttNorm[3]  = new Image();BttNorm[3].src  = "img/fach_bttn.gif"
BttOver[3]  = new Image();BttOver[3].src  = "img/fach_bttn-over.gif"
BttNorm[4]  = new Image();BttNorm[4].src  = "img/links-bttn.gif"
BttOver[4]  = new Image();BttOver[4].src  = "img/links-bttn-over.gif"
BttNorm[5]  = new Image();BttNorm[5].src  = "img/aktuell-bttn.gif"
BttOver[5]  = new Image();BttOver[5].src  = "img/aktuell-bttn-over.gif"
}

var erstesBild = 0;
var anzahlBilder  = 6;
var ImgNr = null;

function Change(Img,an) 
{	if (document.images)
	{	if (ImgNr != Img)
		{	if (an ==1)
				document.images[Img + erstesBild].src = BttOver[Img].src;
			else
				document.images[Img + erstesBild].src = BttNorm[Img].src;
		}
	}
}

function ImgAktiv(Img) 
{	if (document.images) 
	{	for (var i = 0 ; i < anzahlBilder; i++) 
		{	if (i == Img) 
				document.images[i + erstesBild].src = BttOver[i].src;
			else
				document.images[i + erstesBild].src = BttNorm[i].src;
		}
	ImgNr = Img;
	}
}


function frameCtrl() 
{
if(top.frames.length != 8)
top.location.href="index.html";
}



if (document.images) {
banner = new Array();

banner[0]  = new Image();banner[0].src  = "img/ehe.jpg"
banner[1]  = new Image();banner[1].src  = "img/bgb.jpg"
banner[2]  = new Image();banner[2].src  = "img/dom.jpg"
banner[3]  = new Image();banner[3].src  = "img/justitia.jpg"
banner[4]  = new Image();banner[4].src  = "img/aktuell.jpg"
banner[5]  = new Image();banner[5].src  = "img/pharma.jpg"
}

function BannerChange(n) 
{	if (document.images)
	{ if(document.images[3].src != banner[n].src)
	document.images[3].src = banner[n].src;
	}
}


function show() {
 if(document.getElementById)
   document.getElementById("dc").style.display = "inline";}
  
function hide() {
 if(document.getElementById)
   document.getElementById("dc").style.display = "none";}
   
function WegShow() {
 if(document.getElementById)
   document.getElementById("way").style.display = "inline";}
  
function WegHide() {
 if(document.getElementById)
   document.getElementById("way").style.display = "none";}