
var lPic = new Array(35);
var oPic = new Array(35);
var picname = new Array(35);

	for (i = 0; i <= 36; i++)

	{

		lPic[i]=new Image();

		oPic[i]=new Image();

	}
var fertig="nein";
var ofertig="ja";
var lfertig="ja";

function picLoad()

{
		pfad = window.location.pathname;
		var tmp ="";
		var x = 1;
		var picount = 0;
		var ld;
		tmp=document.images[x].name;
		while (tmp !="picende")
		{
			if (tmp != "")
			{
			lPic[picount].src=document.images[x].src;
			picname[picount]=tmp;
			ld=tmp.substring(0,2)+"_"+tmp.substring(2,4);
			if (ld >= "bu_19" && ld <= "bu_35") { ld = "bu_09"; } 
			ld="images/ak_"+ld+"_01.gif";
			if (pfad.indexOf("/wb") >= 0 )  ld = "../" + ld;
			oPic[picount].src=ld;
			picount++;
			}
			x++;
			tmp=document.images[x].name;
			
		}

		fertig="Ja"
}

function overPic(pic1)

{

		if (fertig=="Ja")
		{
		if (ofertig == "ja")
		{
		ofertig="nein";
		var x = 0;
		var tmp;
		while(picname[x]!=pic1)
		{
			x++;
		}
		
		document.images[pic1].src = oPic[x].src;
		ofertig="ja";
		}
		}
}

function lowPic(pic1)

{
		if (fertig == "Ja")
		{
		if (lfertig == "ja")
		{
		lfertig="nein";
		var x = 0;
		while(picname[x]!=pic1)
		{
			x++;
		}
		
		document.images[pic1].src = lPic[x].src;
		lfertig="ja";
		}
		}
}

function senddata(machdas)
{
    	document.sendform.machdas.value = machdas;
	document.sendform.action = machdas;
	document.sendform.submit();
}

function sendeform(was,machdas)
{
	document.sendform.machdas.value = was;
	document.sendform.action = machdas;
	document.sendform.submit();
}

function hlink(machdas)
{
window.location.href = machdas;	
}

function schreiben()
{
	document.sendform.submit();
}





