/* * * * * * * * * * * * * * * *  T I C K E R - S C R I P T * * * * * * * * * * * * * * * * */

/* * * *  l i c e n s e d   u n d e r   G P L * * * * * * * * * * * * * * * * * * * * * * * */

tNews=new Array();

if(typeof arrNews != "undefined"){
   tNews=arrNews;
}

// Die News
/*
tNews.push('<strong>Titel wird als < strong > notiert</strong>, dann der Standard-Text');
tNews.push('<strong>Tickertext 2</strong>, mal <i>kursiv</i>');
tNews.push('<strong>Tickertext 3</strong>, Abwechslung tut not');
tNews.push('... mehr, mehr, mehr! ...');
tNews.push('Ticker mit <a href="#">Link</a> geht auch ;)');
*/

// Trennzeichen (auch mehrere) zwischen den einzelnen News
tDelimiter  =' | ';

// Interval in ms
tInterval   =14;

// Stop bei mouseover? true:false
tStop       =true;

// Falls Leeraum zwischen News: hier Wert erhoehen... minimum:1
tRepeat     =0;


// Breite
tWidth      =550;

// Höhe
tHeight     =50;

//Abstand Rahmen->Inhalt (top+bottom)
tPadding    =1;

//Das Aussehen per CSS anpassbar unter Verwendung des Selectors #ticker

/* * * * * * * * * * * * * * * * * * D E R  T I C K E R * * * * * * * * * * * * * * * * * * * * * */
IE  = document.all&&!window.opera;
DOM = document.getElementById&&!IE;

if(DOM||IE)
{
var tGo,
tPos  = 0,
tStop = tStop?'onmouseover="clearInterval(tGo)"'+ 'onmouseout="tGo=setInterval(\'DM_ticken()\','+tInterval+')"':'',
tTxt  = tDelimiter+tNews.join(tDelimiter),
tNews = tTxt;

for(i = 1; i < tRepeat; ++i)
               {
               tNews+=tTxt;
               }
               
               document.write('<div style="float:left;overflow:hidden;width:' + tWidth + 'px;height:' + tHeight + 'px;' +
                                    'padding:' + tPadding + 'px 0px ' + tPadding + ' px 0px;">' +
                 '<div style="position:absolute;margin-left:10px; margin-right:9px;z-index:90;width:' + tWidth + 'px;height:' + tHeight + 'px;'+
                       'overflow:hidden;clip:rect(0px '+tWidth+'px '+tHeight+'px 0px)">'+
                   '<span id="ticker"style="white-space:nowrap;position:relative;"' + tStop + '>' + tNews + 
                     '</span></div></div>');
               
               tObj = IE ? document.all.ticker : document.getElementById('ticker');
               
               function DM_ticken()
               {
               tOffset = tObj.offsetWidth + 100;
               if(Math.abs(tPos) > tOffset)
               {
               tPos=0;
               }
               tObj.style.left=tPos+'px';
               tPos=parseInt(tPos)-1;
               }
               
               tGo=setInterval('DM_ticken()',tInterval);
               }       
      