var index=0;text_pos=0;rc_index=0;var contents,row;var kk_satz=new Array("","Tickertext 1");var initialized=false;function type_text(a){if(!this.initialized){init(a)}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++>this.str_length){text_pos=0;index++;if(index<kk_satz.length){this.str_length=kk_satz[index].length;setTimeout("type_text(this.uid)",1500)}else{if(rc_index++<this.tr_no){text_pos=0;index=0;this.str_length=kk_satz[0].length;setTimeout("type_text(this.uid)",repeat_ticker)}}}else{setTimeout("type_text(this.uid)",speed)}}function init(b){this.uid=b;this.tickerid="ticker"+this.uid;this.str_length=kk_satz[0].length;this.tr_no=ticker_repetition_no-1;if(numberoflines>0){var a=Math.ceil(numberoflines*14)+"px";document.getElementById(this.tickerid).style.height=a}else{document.getElementById(this.tickerid).style.height="20px"}if(bgcolor!=""){document.getElementById(this.tickerid).style.backgroundColor=bgcolor}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}this.initialized=true};
