function bildlauf_vertikal(){
			hoehe = (anzahl * bildhoehe) + faktorabstand;
			hoehe2 = hoehe + faktorabstand;
		if (parseInt(kreuz_lauf.style.top)>(akthoehe*(-1))){
			kreuz_lauf.style.top=parseInt(kreuz_lauf.style.top)-kopiegeschwindigkeit+"px";
			
		}else{
			kreuz_lauf.style.top=hoehe2 + "px";
		}
		if (parseInt(kreuz_lauf2.style.top)>(akthoehe*(-1))){
			kreuz_lauf2.style.top=parseInt(kreuz_lauf2.style.top)-kopiegeschwindigkeit+"px";
		}else{
			kreuz_lauf2.style.top=hoehe2 + "px";
		}
	}
	
function bildlauf_horizontal(){
	breite = (anzahl * bildbreite) + faktorabstand;
	breite2 = breite + faktorabstand;
	if (parseInt(kreuz_lauf.style.left)>(aktbreite*(-1))){
		kreuz_lauf.style.left=parseInt(kreuz_lauf.style.left)-kopiegeschwindigkeit+"px";
	}else{
		kreuz_lauf.style.left=breite2 + "px";
	}
	if (parseInt(kreuz_lauf2.style.left)>(aktbreite*(-1))){
		kreuz_lauf2.style.left=parseInt(kreuz_lauf2.style.left)-kopiegeschwindigkeit+"px";
	}else{
		kreuz_lauf2.style.left=breite2 + "px";
	}
}
	
function initialisiere_bildlauf(){
	first = 1;
	kreuz_lauf=document.getElementById("bildlauf_box2");
	kreuz_lauf2 = document.getElementById("bildlauf_box3");
	kreuz_lauf2.innerHTML = kreuz_lauf.innerHTML;
	kreuz_lauf.style.top=0;
	kreuz_lauf.style.left=0;
	bildlauf_hoehe=document.getElementById("bildlauf_box").offsetHeight;
	akthoehe=kreuz_lauf.offsetHeight;
	bildlauf_breite=document.getElementById("bildlauf_box").offsetWidth;
	aktbreite=kreuz_lauf.offsetWidth;
	if(richtung==2){
		if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //wenn Opera or Netscape 7x,  Scrollbalken einbauen und ende
			kreuz_lauf.style.width=bildlauf_breite+"px";
			kreuz_lauf.style.overflow="scroll";
			return
		}
		setTimeout('lefttime=setInterval("bildlauf_horizontal()",10)', wartezeit);
	}else{
		if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //wenn Opera or Netscape 7x,  Scrollbalken einbauen und ende
			kreuz_lauf.style.height=bildlauf_hoehe+"px";
			kreuz_lauf.style.overflow="scroll";
			return
		}
		setTimeout('lefttime=setInterval("bildlauf_vertikal()",10)', wartezeit);
	}
}
	
function definiere_bildlauf(){
	if (richtung==2){
		var breite;
		breite = anzahl * bildbreite;
		document.getElementById("bildlauf_box").style.width = (bildbreite * laufgroesse) + "px";
		document.getElementById("bildlauf_box").style.height = (bildhoehe + 5) + "px";
		document.getElementById("bildlauf_box2").style.width = breite + "px";
		document.getElementById("bildlauf_box3").style.width = breite + "px";
		document.getElementById("bildlauf_box3").style.left = (breite + faktorabstand) + "px";			
		document.getElementById("bildlauf_box3").style.top = "0px";
	}else{
		var hoehe;
		hoehe = anzahl * bildhoehe; 
		document.getElementById("bildlauf_box").style.height = (bildhoehe * laufgroesse) + "px";
		document.getElementById("bildlauf_box").style.width = (bildbreite + 5) + "px";
		document.getElementById("bildlauf_box2").style.height=hoehe + "px";	
		document.getElementById("bildlauf_box3").style.height=hoehe + "px";	
		document.getElementById("bildlauf_box3").style.top = (hoehe + faktorabstand) + "px";			
		document.getElementById("bildlauf_box3").style.left="0px";	
	}
	
	if (window.addEventListener){
		window.addEventListener("load", initialisiere_bildlauf, false);
	}else if (window.attachEvent){
		window.attachEvent("onload", initialisiere_bildlauf);
	}else if (document.getElementById){
		window.onload=initialisiere_bildlauf;
	}
}
