// Copyright ODN Autor:Peter Ziegler Datum 12.12.03
	function checkIt(){
		if (document.getElementById && document.body){
		
			breite = document.body.clientWidth;
			breite = Math.ceil(breite/2)-362;
		// Flugbahnen 727 *600
			elem1 = document.getElementById('flocke1').style;
			elem2 = document.getElementById('flocke2').style;
			elem3 = document.getElementById('flocke3').style;
			elem4 = document.getElementById('flocke4').style;
			elem5 = document.getElementById('flocke5').style;
			li_1 = breite +  Math.ceil(Math.floor(Math.random()*680))
			li_2 = breite +  Math.ceil(Math.floor(Math.random()*680))
			li_3 = breite +  Math.ceil(Math.floor(Math.random()*680))
			li_4 = breite +  Math.ceil(Math.floor(Math.random()*680))
			li_5 = breite +  Math.ceil(Math.floor(Math.random()*680))
			s1 = 5 + Math.ceil(Math.floor(Math.random()*5))
 			s2 = 5 + Math.ceil(Math.floor(Math.random()*5))
			s3 = 5 + Math.ceil(Math.floor(Math.random()*5))
			s4 = 5 + Math.ceil(Math.floor(Math.random()*5))
			s5 = 5 + Math.ceil(Math.floor(Math.random()*5))
			MoveIt(-700,-700,-700,-700,-700);
			
			//bereite=screen.availWidth;
		}
	}
	v=70; // millisekunden pro Schritt


// Scrolling
function scrollen(akt1,akt2,akt3,akt4,akt5) {
	elem1.top=akt1;
	elem1.left=li_1;
	elem2.top=akt2;
	elem2.left=li_2;
	elem3.top=akt3;
	elem3.left=li_3;
	elem4.top=akt4;
	elem4.left=li_4;
	elem5.top=akt5;
	elem5.left=li_5;

//	document.forms[0].elements[0].value=x;
//	document.forms[0].elements[1].value=akt;
	scrolli=setTimeout("MoveIt("+akt1+","+akt2+","+akt3+","+akt4+","+akt5+")",v)
}

function MoveIt(akt1,akt2,akt3,akt4,akt5){
	 if (akt1<0){
		akt1+=s1;
		}
		else{
		akt1=-720;
		li_1 = breite +  Math.ceil(Math.floor(Math.random()*680))
		s1 = 5 +  Math.ceil(Math.floor(Math.random()*5))
 			
		}
		if (akt2<0){
		akt2+=s2;
		}
		else{
		akt2=-730;
		li_2 = breite +  Math.ceil(Math.floor(Math.random()*680))
		s2 = 5 +  Math.ceil(Math.floor(Math.random()*5))
		}
		if (akt3<0){
		akt3+=s3;
		
		}
		else{
		akt3=-740;
		li_3 = breite +  Math.ceil(Math.floor(Math.random()*680))
		s3 = 5 +  Math.ceil(Math.floor(Math.random()*5))
		
	
		}
		if (akt4<0){
		akt4+=s4;
		
		}
		else{
		akt4=-750;
		li_4 = breite +  Math.ceil(Math.floor(Math.random()*680))
		s4 = 5 +  Math.ceil(Math.floor(Math.random()*5))
		}
		if (akt5<0){
		akt5+=s5;
		
		}
		else{
		akt5=-760;
		li_5 = breite +  Math.ceil(Math.floor(Math.random()*680))
		s5 = 5 +  Math.ceil(Math.floor(Math.random()*5))
		}
		
			scrollen(akt1,akt2,akt3,akt4,akt5);
		
		
		
	}

