var txtarray = new Array();
txtarray[0] = '<a href="messereisen.html" title="SIMTOS Exhibition tour 2008 – if you want more information, click here" ><img src="../newsticker/tickerdata/simtos2008.png" alt="" /></a>';
txtarray[1] = '<a href="messereisen.html" title="SIMTOS Exhibition tour 2008 – if you want more information, click here" ><img src="../newsticker/tickerdata/simtos2008.png" alt="" /></a>';
txtarray[2] = '<a href="messereisen.html" title="SIMTOS Exhibition tour 2008 – if you want more information, click here" ><img src="../newsticker/tickerdata/simtos2008.png" alt="" /></a>';
var firstwidth, txt, counter=1, akttxt, ntrun=1, anzahl=txtarray.length-1;
var laufbahn;
var nt_html = '<div class="newsticker"><div class="ntm"></div><div id="laufbahn" class="laufbahn" onmouseover="ntrun=0;" onmouseout="ntrun=1;"></div><div class="ntl"></div><div class="ntr"></div></div>';
// **********************************************
function newsticker(){
	document.write(nt_html);
	schleife("laufbahn");
	}

// **********************************************
function move_left(id, aktleft){
	if(ntrun){
		obj = document.getElementById(id);
		aktleft = aktleft + 1;
		obj.style.left = "-"+aktleft+"px"; 
		}
	if(aktleft < firstwidth){setTimeout("move_left('"+id+"', "+aktleft+")",30);}
	else { 
		if(counter>=anzahl){counter=0;}
		counter=counter+1;
		obj.style.left = "0px";
		schleife(id);
		}
	}
function writent(id) {
	laufbahn = document.getElementById(id);
	laufbahn.innerHTML ="";
	akttxt = counter;
	for(i=1;i<=anzahl;i++){
		laufbahn.innerHTML = laufbahn.innerHTML+'<span id="news'+i+'">'+txtarray[akttxt]+"</span>"; 
		if(anzahl == 1){laufbahn.innerHTML = laufbahn.innerHTML+'<span id="news'+i+'">'+txtarray[akttxt]+"</span>"; }
		if(akttxt >= anzahl){akttxt = 0;}
		akttxt++;
		}
	}
function schleife(id){
	writent(id);
	txt1 = document.getElementById('news1');
	firstwidth = txt1.offsetWidth ;
	move_left(id,0);
	}
// **********************************************

