wechselbilder = new Array("bild1.jpg","bild2.jpg","bild3.jpg","bild4.jpg","bild5.jpg","bild6.jpg","bild7.jpg","bild8.jpg","bild9.jpg","bild10.jpg","bild11.jpg");
arraylaenge = wechselbilder.length - 1;
position = (Math.floor(Math.random()*10)%7);
wechseldauer = 9000;




function wechsler(){
	$('#wechselbild').animate( {opacity: 0.0}, 1000);
	$('#wechselbild').animate( {background:"transparent url(./images/rahmen/rotation/"+wechselbilder[position]+") no-repeat scroll 0 0"}, 0);
	$('#wechselbild').animate( {opacity: 1.0}, 1000);
	position++;
	if(position>arraylaenge){
		position = 0;
	}
	setTimeout(wechsler,wechseldauer)
}