
	

	

	bild1 = new Image();

 	bild1.src = "../images/bilder/614.gif "; 

 	

 	bild2 = new Image();

 	bild2.src = "../images/bilder/1094.gif "; 





 	bild3 = new Image();

 	bild3.src = "../images/bilder/280.gif "; 





 	bild4 = new Image();

 	bild4.src = "../images/bilder/208.gif "; 



 	bild5 = new Image();

 	bild5.src = "../images/bilder/37.gif "; 



 	bild6 = new Image();

 	bild6.src = "../images/bilder/908.gif "; 



 	bild7 = new Image();

 	bild7.src = "../images/bilder/985.gif "; 





 	bild8 = new Image();

 	bild8.src = "../images/bilder/73.gif"; 



 	bild9 = new Image();

 	bild9.src = "../images/bilder/1007.gif "; 



 	bild10 = new Image();

 	bild10.src = "../images/bilder/620.gif "; 



 	bild11 = new Image();

 	bild11.src = "../images/bilder/1100.gif"; 





 	bild12 = new Image();

 	bild12.src = "../images/bilder/638.gif"; 



    

 	bild13 = new Image();

 	bild13.src = "../images/bilder/445.gif "; 



 	bild14 = new Image();

 	bild14.src = "../images/bilder/146.gif "; 



 	bild15 = new Image();

 	bild15.src = "../images/bilder/180.gif ";

 	

 	bild16 = new Image();

 	bild16.src = "../images/bilder/829.gif";



 	bild17 = new Image();

 	bild17.src = "../images/bilder/586.gif";

 	

 	bild18 = new Image();

 	bild18.src = "../images/bilder/293.gif";

 	

 	bild20 = new Image();

 	bild20.src = "../images/bilder/416.gif";

 	 	

 	bild19 = new Image();

 	bild19.src = "../images/bilder/371.gif";



 	bild21 = new Image();

 	bild21.src = "../images/bilder/1065.gif";



 	bild22 = new Image();

 	bild22.src = "../images/bilder/535.gif";



 	bild23 = new Image();

 	bild23.src = "../images/bilder/1057.gif";



 	

 		





woher = new Array(bild1,bild2,bild3,bild4,bild5,bild6,bild7,bild8,bild9,bild10,bild11,bild12, bild13,bild14,bild15,bild16,bild17,bild18,bild19,bild20,bild21,bild22,bild23);



	var eins = 0;

	var zwei = 0;

	var drei = 0;

	var vier = 0;

	var fuenf = 0;

	var sechs = 0;

	var sieben = 0;

	var acht = 0;

	var neun = 0;

	var zehn = 0;

	var elf = 0;

	var zwoelf = 0;

	var dreizehn = 0;

	var vierzehn = 0;

	var fuenfzehn = 0;

	var sechszehn = 0;

	var siebzehn = 0;

	var achtzehn = 0;

	var neunzehn = 0;

	var zwanzig = 0;

	var zwanzigeins = 0;

	var zwanzigzwei = 0;

	var zwanzigdrei = 0;

		

function zufallsbild(){

		var rechnung1;



		for ( var i = 1; i < 9; i++){

 {
 		if (i == 1) leiste = "leiste1";
 		if (i == 2) leiste = "leiste2";
 		if (i == 3) leiste = "leiste3";
 		if (i == 4) leiste = "leiste4";
 		if (i == 5) leiste = "leiste5";
 		if (i == 6) leiste = "leiste6";
 		if (i == 7) leiste = "leiste7";
 		if (i == 8) leiste = "leiste8";

				rechnung1 = zufallcalc();

				window.document.images[leiste].src = rechnung1.src ;



			}	

		}

		

			this.eins = 0;

			this.zwei = 0;

			this.drei = 0;

			this.vier = 0;

			this.fuenf = 0;

			this.sechs = 0;

			this.sieben = 0;

			this.acht = 0;

			this.neun = 0;

			this.zehn = 0;

			this.elf = 0;

			this.zwoelf = 0;

			this.dreizehn = 0;

			this.vierzehn = 0;

			this.fuenfzehn = 0;

			this.sechszehn = 0;

			this.siebzehn = 0;

			this.achtzehn = 0;

			this.neunzehn = 0;

			this.zwanzig = 0;

			this.zwanzigeins = 0;

			this.zwanzigzwei = 0;

			this.zwanzigdrei = 0;

		

		

	

	}



	function zufallcalc(){

	var zahl = Math.round(Math.random() * 22) +1  ;

	var ergebnis ;

		if (zahl ==1){

			if(this.eins == 0){

				this.eins =1;

				ergebnis = woher[0];

		

					return ergebnis ;

			}	

					

			else {  return zufallcalc(); }

		}

		else if (zahl ==2){

				if(this.zwei ==0){        

					this.zwei =1;

					ergebnis = woher[1];

					return ergebnis ;

			

				}	

					

				else { return zufallcalc(); }

		}

		

		else if (zahl ==3){

				if(this.drei ==0){

					this.drei =1;

					ergebnis = woher[2];

					return ergebnis ;

				}	

					

				else { return zufallcalc(); 

				}

		}

		else if (zahl ==4){

				if(this.vier ==0){

					this.vier =1;

					ergebnis = woher[3];

					return ergebnis ;

				}	

					

				else {  return zufallcalc();

				}

		}

		else if (zahl ==5){

				if(this.fuenf ==0){

					this.fuenf =1;

					ergebnis = woher[4];

					return ergebnis ;

				} 	

				else {  return zufallcalc(); 

				}

		}

		else if (zahl ==6){

					if(this.sechs ==0){

					this.sechs =1;

					ergebnis = woher[5];

					return ergebnis ;

				} 	

				else {  return zufallcalc(); 

				}

			

		}

		





		else if (zahl ==7){

				if(this.sieben ==0){

					this.sieben =1;

					ergebnis = woher[6];

					return ergebnis ;

				}	

				else {  return zufallcalc(); 

				}

		}

		else if (zahl ==8){

				if(this.acht ==0){

					this.acht =1;

					ergebnis = woher[7];

					return ergebnis ;

				}

					

				else {  return zufallcalc();

				}

		}

		else if (zahl ==9){

				if(this.neun ==0){

					this.neun =1;

					ergebnis = woher[8];

					return ergebnis ;

				}	

					

				else {  return zufallcalc();

				}

		}

		else if (zahl ==10){

				if(this.zehn ==0){

					this.zehn =1;

					ergebnis = woher[9];

					return ergebnis ;

				}	

					

				else { return zufallcalc(); 

				}

		}

		else if (zahl ==11){

				if(this.elf ==0){

					this.elf =1;

					ergebnis = woher[10];

					return ergebnis ;

				}	

					

				else { return zufallcalc(); 

				}

		}

		else if (zahl ==12){

				if(this.zwoelf ==0){

					this.zwoelf =1;

					ergebnis = woher[11];

					return ergebnis ;

				}	

					

				else { return zufallcalc(); 

				}

		}

		else if (zahl ==13){

				if(this.dreizehn ==0){

					this.dreizehn =1;

					ergebnis = woher[12];

					return ergebnis ;

				}	

					

				else { return zufallcalc(); 

				}

		}

		else if (zahl ==14){

				if(this.vierzehn ==0){

					this.vierzehn =1;

					ergebnis = woher[13];

					return ergebnis ;

				}	

					

				else { return zufallcalc(); 

				}

		}



		else if (zahl ==15){

				if(this.fuenfzehn==0){

					this.fuenfzehn =1;

					ergebnis = woher[14];

					return ergebnis ;

				}	

					

				else { return zufallcalc(); 

				}

		}



		else if (zahl ==16){

				if(this.sechszehn==0){

					this.sechszehn =1;

					ergebnis = woher[15];

					return ergebnis ;

				}	

					

				else { return zufallcalc(); 

				}

		}



		else if (zahl ==17){

				if(this.siebzehn==0){

					this.siebzehn =1;

					ergebnis = woher[16];

					return ergebnis ;

				}	

					

				else { return zufallcalc(); 

				}

		}



		else if (zahl ==18){

				if(this.achtzehn==0){

					this.achtzehn =1;

					ergebnis = woher[17];

					return ergebnis ;

				}	

					

				else { return zufallcalc(); 

				}

		}



		else if (zahl ==19){

				if(this.neunzehn==0){

					this.neunzehn =1;

					ergebnis = woher[18];

					return ergebnis ;

				}	

					

				else { return zufallcalc(); 

				}

		}



		else if (zahl ==20){

				if(this.zwanzig==0){

					this.zwanzig =1;

					ergebnis = woher[19];

					return ergebnis ;

				}	

					

				else { return zufallcalc(); 

				}

		}



		else if (zahl ==21){

				if(this.zwanzigeins==0){

					this.zwanzigeins =1;

					ergebnis = woher[20];

					return ergebnis ;

				}	

					

				else { return zufallcalc(); 

				}

		}



		else if (zahl ==22){

				if(this.zwanzigzwei==0){

					this.zwanzigzwei =1;

					ergebnis = woher[21];

					return ergebnis ;

				}	

					

				else { return zufallcalc(); 

				}

		}



		else if (zahl ==23){

				if(this.zwanzigdrei==0){

					this.zwanzigdrei =1;

					ergebnis = woher[22];

					return ergebnis ;

				}	

					

				else { return zufallcalc(); 

				}

		}





		else { return zufallcalc();

		}

}





function zeitleiste (nummer)



{

	

	if (window.document.images[nummer].src == bild10.src){

		window.open("../zeitleiste/620.html", "subwin","Height=440,Width=565");

	}

	else if (window.document.images[nummer].src == bild6.src){

		window.open("../zeitleiste/908.html", "subwin","Height=440,Width=565");

	}

	else if (window.document.images[nummer].src == bild13.src){

		window.open("../zeitleiste/445.html", "subwin","Height=440,Width=565");

	}

	else if (window.document.images[nummer].src == bild17.src){

		window.open("../zeitleiste/586.html", "subwin","Height=440,Width=565");	

	}

	else if (window.document.images[nummer].src == bild7.src){

		window.open("../zeitleiste/985.html", "subwin","Height=440,Width=565");

	}

	else if (window.document.images[nummer].src == bild18.src){

		window.open("../zeitleiste/293.html", "subwin","Height=440,Width=565");

	}

	else if (window.document.images[nummer].src == bild5.src){

		window.open("../zeitleiste/37.html", "subwin","Height=440,Width=565");

	}

	else if (window.document.images[nummer].src == bild16.src){

		window.open("../zeitleiste/829.html", "subwin","Height=440,Width=565");	}



	else if (window.document.images[nummer].src == bild8.src){

		window.open("../zeitleiste/73.html", "subwin","Height=440,Width=565");

	}

	else if (window.document.images[nummer].src == bild14.src){

		window.open("../zeitleiste/146.html", "subwin","Height=440,Width=565");

	}

	else if (window.document.images[nummer].src == bild15.src){

		window.open("../zeitleiste/180.html", "subwin","Height=440,Width=565");

	}

	else if (window.document.images[nummer].src == bild4.src){

		window.open("../zeitleiste/208.html", "subwin","Height=440,Width=565");

	}

	else if (window.document.images[nummer].src == bild20.src){

		window.open("../zeitleiste/416.html", "subwin","Height=440,Width=565");

	}

	else if (window.document.images[nummer].src == bild3.src){

		window.open("../zeitleiste/280.html", "subwin","Height=440,Width=565");

	}

		else if (window.document.images[nummer].src == bild19.src){

		window.open("../zeitleiste/371.html", "subwin","Height=440,Width=565");

	}

		else if (window.document.images[nummer].src == bild21.src){

		window.open("../zeitleiste/1065.html", "subwin","Height=440,Width=565");

	}

		else if (window.document.images[nummer].src == bild9.src){

		window.open("../zeitleiste/1007.html", "subwin","Height=440,Width=565");

	}

		else if (window.document.images[nummer].src == bild22.src){

		window.open("../zeitleiste/535.html", "subwin","Height=440,Width=565");

	}

		else if (window.document.images[nummer].src == bild23.src){

		window.open("../zeitleiste/1057.html", "subwin","Height=440,Width=565");

	}

		else if (window.document.images[nummer].src == bild1.src){

		window.open("../zeitleiste/614.html", "subwin","Height=440,Width=565");

	}

		else if (window.document.images[nummer].src == bild12.src){

		window.open("../zeitleiste/638.html", "subwin","Height=440,Width=565");

	}

		else if (window.document.images[nummer].src == bild2.src){

		window.open("../zeitleiste/1094.html", "subwin","Height=440,Width=565");

	}

		else if (window.document.images[nummer].src == bild11.src){

		window.open("../zeitleiste/1100.html", "subwin","Height=440,Width=565");

	}

}



function init(){

setInterval("zufallsbild()",3000);

}
