var index=0;text_pos=0;var contents,row;var kk_satz=new Array("","Tickertext 1");var str_length=kk_satz.length;function type_text(b){this.uid=b;this.tickerid="ticker"+this.uid;if(numberoflines>0){var a=Math.ceil(numberoflines*14)+"px";document.getElementById(this.tickerid).style.height=a}else{alert("Missing no of lines!?");return}if(bgimage!=""){document.getElementById(this.tickerid).style.backgroundImage=bgimage}if(bgrepeat!=""){document.getElementById(this.tickerid).style.backgroundRepeat=bgrepeat}if(bgposition!=""){document.getElementById(this.tickerid).style.backgroundPosition=bgposition}if(schriftfarbe!=""){document.getElementById(this.tickerid).style.color=schriftfarbe}if(schriftstaerke!=""){document.getElementById(this.tickerid).style.fontWeight=schriftstaerke}contents="";kk=numberoflines-1;row=Math.max(0,index-kk);while(row<index){contents+=kk_satz[row++]+"\r\n"}if(kk_satz[index]){document.getElementById(this.tickerid).value=contents+kk_satz[index].substring(0,text_pos)+"_"}else{return}if(text_pos++>=str_length){text_pos=0;index++;if(index!=kk_satz.length){str_length=kk_satz[index].length;setTimeout("type_text(this.uid)",1500)}}else{setTimeout("type_text(this.uid)",speed)}};