function ticker_anzeigen()
{
  if(isNS4)
  {
    nt_ticker='<table border="0" cellpadding="0" cellspacing="0" width="'+nt_width+'" bgcolor="'+nt_bdcolor+'"><tr><td>'
    nt_ticker+='<table border="0" cellpadding="3" cellspacing="1" width="100%" height="'+nt_height+'" bgcolor="'+nt_backcolor+'"><tr><td align="center" nowrap><p>';
    nt_ticker+=nstext;
	nt_ticker+='</p>';  
	nt_ticker+='</td>';
	nt_ticker+='</tr>';  
	nt_ticker+='</table>';
	nt_ticker+='</td>';
	nt_ticker+='</tr>';
	nt_ticker+='</table>';     
  }
  else
  {
    nt_ticker='<table border="0" cellpadding="0" cellspacing="0" style="width:'+nt_width+';height:'+nt_height+';border:'+nt_bdwidth+'px solid '+nt_bdcolor+';background-color:'+nt_backcolor+'">';
    nt_ticker+='<tr valign="middle">';
	nt_ticker+='<td>';
	nt_ticker+='<div id="nt_div" style="';
    if(nt_orientation.toLowerCase()== "vertical")	
	{	
		nt_ticker+='height:'+nt_height+';';		
	}
    nt_ticker+='width:'+nt_width+'; position:relative; background-color:'+nt_backcolor+'; overflow:hidden">';
    nt_ticker+='<div id="nt_div1" style="position:relative; left:0; z-index:1">';
    nt_ticker+='<table border="0" name="nt_table" id="nt_table"';
    if(nt_orientation.toLowerCase()=="vertical")
	{
		nt_ticker+='style="width:'+nt_width+'"';
	}
    nt_ticker+='><tr>';
    y=0;
    while (y < 4)
    {
      for (x=0; x<(nt_message.length); x++)
      {
        if(nt_orientation.toLowerCase()=="vertical")	
		{
		   nt_ticker+='<tr>';
		}
        nt_ticker+='<td ';
        if(nt_orientation.toLowerCase()=="horizontal")	
		{	
		   nt_ticker+='nowrap';	
		} 
		if(nt_stopscroll==1)							
		{	
		   nt_ticker+=' onMouseOver="tickerstop();" onMouseOut="setWidth()"';	
		}
        nt_ticker+='><p>';
        if(nt_message[x][1].toLowerCase()!="none")		
		{	
		   nt_ticker+='<a class="ticker" href="'+nt_message[x][1]+'" target="'+nt_message[x][2]+'" ><font size='+nt_fontsize+'>'+nt_message[x][0]+'</font></a>';	
		}
		else											
		{	
		   nt_ticker+='<font size='+nt_fontsize+' color='+nt_textcolor+'>'+nt_message[x][0]+'</font>';		
		}          
        nt_ticker+='</p></td>';        
        if(nt_orientation.toLowerCase()=="vertical")	
		{	
		   nt_ticker+='</tr>';		
		}              
        if(nt_seperator.toLowerCase() != "none")		
		{	
		   nt_ticker+='<td nowrap><p><font size='+nt_fontsize+' color='+nt_textcolor+'>'+nt_seperator+'</font></p></td>';	
		}
      }
      y++
    }
    nt_ticker+='</tr>';  
	nt_ticker+='</table>';
	nt_ticker+='</div></div>';
	nt_ticker+='</td>';
	nt_ticker+='</tr>';
	nt_ticker+='</table>';
  }
  document.writeln(nt_ticker);
}
function setWidth()
{ 
  tableObj=(isIE)?document.all("nt_table"):document.getElementById("nt_table"); 
  obj=(isIE)?document.all.nt_div1:document.getElementById("nt_div1");   
  objWidth=(nt_orientation.toLowerCase()== "horizontal")?getOffset(tableObj,"width"):getOffset(tableObj,"height");
  HalfWidth=Math.floor(objWidth/2);
  newWidth = (HalfWidth*2)+2;
  obj.style.width=newWidth
  moveLayer(obj, newWidth);
  
}
function moveLayer(obj, width)
{  
  maxLeft = (0-(width/2)+2)/2
  if(nt_orientation.toLowerCase()=="horizontal")
  {
    obj.style.left=(parseInt(obj.style.left) <= maxLeft)?0:parseInt(obj.style.left)-1
  }
  else
  {
    if(obj.style.top==""){obj.style.top=0;}
   // alert(obj.style.top)
    if (parseInt(obj.style.top)<(0-(width/2)+6)){
      obj.style.top = 0
    }else{
      obj.style.top = parseInt(obj.style.top)-1
    }
  }
  nt_timer = setTimeout("moveLayer(obj, "+width+");", nt_scrollspeed); 
}
function getOffset(obj, groesse) 
{
  if(groesse=="width")
  {
    oWidth = obj.offsetWidth
    return oWidth
  }  
  else if(groesse=="height")
  {
    oHeight = obj.offsetHeight
    return oHeight
  }    
}
function tickerstop()	{  clearTimeout(nt_timer)	}
function tickerrun()	{  if(!isNS4){setWidth()}	}