var tickercolor='#000000';
var fontcolor='#000000';
var splitcolor='#FF6600';
var fontsize=13;
var visitedlink='#333';
var rollovercolor='#333';
var font='Arial';
var speed=2;
var sparte=3;
   var rubrik=2;
   var ticker_stop=1;
   var rollover_underline=1;
   var font_underline=0;
   var fontbold=0;
   var tickertyp=0;
   var u_id=195606;
   

   
   function Ticker(name, id, shiftBy, interval)
   {
     this.name     = name;
     this.id       = id;
     this.shiftBy  = shiftBy ? shiftBy : 1;
     this.interval = interval ? interval : 100;
     this.runId	= null;
   
     this.div = document.getElementById(id);
   
   
   
     var node = this.div.firstChild;
     var next;
   
     while (node)
     {
       next = node.nextSibling;
       if (node.nodeType == 3)
         this.div.removeChild(node);
       node = next;
     }
   
   
    
     this.left = 0;
     this.shiftLeftAt = this.div.firstChild.offsetWidth;
     this.div.style.height	= this.div.firstChild.offsetHeight;
     this.div.style.width = 481;
     this.div.style.visibility = 'visible';
   }
   
   function startTicker()
   {
     this.stop();
     
     this.left -= this.shiftBy;
   
     if (this.left <= -this.shiftLeftAt)
     {
       this.left = 0;
       this.div.appendChild(this.div.firstChild);
     
       this.shiftLeftAt = this.div.firstChild.offsetWidth;
     }
   
     this.div.style.left = (this.left + 'px');
   
     this.runId = setTimeout(this.name + '.start()', this.interval);
   }
   
   function stopTicker()
   {
     if (this.runId)
       clearTimeout(this.runId);
       
     this.runId = null;
   }
   
   function changeTickerInterval(newinterval)
   {
   
     if (typeof(newinterval) == 'string')
       newinterval =  parseInt('0' + newinterval, 10); 
   	
     if (typeof(newinterval) == 'number' && newinterval > 0)
       this.interval = newinterval;
       
       this.stop();
       this.start();
   }
   
   
   Ticker.prototype.start = startTicker;
   Ticker.prototype.stop = stopTicker;
   Ticker.prototype.changeInterval = changeTickerInterval;
   
   
   var farbe = "";
   if (window.transparent)
   {
      if (transparent==1)
      {
         farbe="";
      }
      else
      {
         if (window.tickercolor)
         {
            farbe='bgcolor="'+tickercolor+'"';
         }
         else
         {
            tickercolor="#ffffff";
            farbe='bgcolor="'+tickercolor+'"';
         } 
      }
   }
   else
   {
      if (window.tickercolor)
      {
         farbe='bgcolor="'+tickercolor+'"';
      }
      else
      {
         window.tickercolor="#ffffff";
         farbe='bgcolor="'+tickercolor+'"';
      } 
   }
   
   if (rollover_underline==false) { var textdecoration_underline = 'none';}
   else {var textdecoration_underline = 'underline';}
   
   if (rollover_underline==null) { var rollover_underline =1;}
   if (font_underline==null) { var font_underline =0;}
   if (fontbold==null) { var fontbold=0;}
   if (rollover_underline==0) { var textdecoration_underline = 'none';}
   else {var textdecoration_underline = 'underline';}
   if (font_underline==1) { var font_underline = 'underline';}
   else {var font_underline = 'none';}
   if (fontbold==1) { var textdecoration_fontbold = 'bold';}
   else {var textdecoration_fontbold = 'normal';}
   
   document.open();
   document.write('<style type=\"text/css\">');            
   document.write('.shortnews:link{vertical-align:middle;color:'+fontcolor+';text-decoration:'+font_underline+';font-weight:'+textdecoration_fontbold+';font-family:'+font+';font-size:'+fontsize+'px};'); 
   document.write('.shortnews:visited{vertical-align:middle;color:'+fontcolor+';text-decoration:'+font_underline+';font-weight:'+textdecoration_fontbold+';font-family:'+font+';font-size:'+fontsize+'px};'); 
   document.write('.shortnews:hover{vertical-align:middle;color:'+rollovercolor+';font-weight:'+textdecoration_fontbold+';font-family:'+font+';font-size:'+fontsize+'px;text-decoration:'+textdecoration_underline+'};'); 
   document.write('.shortnews:active{vertical-align:middle;color:'+fontcolor+';font-weight:'+textdecoration_fontbold+';text-decoration:none;font-family:'+font+';font-size:'+fontsize+'px;text-decoration:'+textdecoration_underline+'};'); 
   document.write('.x1{background-color:'+farbe+';vertical-align:middle;color:'+splitcolor+';font-weight:'+textdecoration_fontbold+';text-decoration:none;font-family:'+font+';font-size:'+fontsize+'px};'); 
   document.write('<\/style>') 
   document.close();
   
   var textcontent;
   
   var i = 0;
   
   textcontent="";
   
    for(i = 0; i <= 15; i++)
     {
      if (news[i]==null) {break;}
   
   textcontent += "<span class='tick'>&nbsp;&nbsp;"+news[i]+"<span class='x1' style='font-size:10px;vertical-align:middle'>&nbsp;&nbsp;&nbsp;+&nbsp;+&nbsp;+&nbsp;<\/span><\/span>"
      textcontent+"&nbsp;&nbsp;"
   
   }	
   textcontent+"";
   
   m=textcontent;
   
   
   
   	var ticker = null; /* ticker object */
   	function init()
   	{

ticker = new Ticker('ticker', 'tickerID', 1, 22);
   		ticker.start();
   	}