/* * * * * * * * * * * * * * * * D I E  V A R I A B L E N * * * * * * * * * * * * * * * * * */
tNews=new Array();

//°°°°°°°°°°Die News
tNews.push('<a href="../aktionsplaene/index.php"><img src="../pics/ticker/aktionsplaene.gif" hspace="10"></a>');
tNews.push('<a href="../cultures/index.php"><img src="../pics/ticker/cultures.gif" hspace="10"></a>');
tNews.push('<a href="../football-united/index.php"><img src="../pics/ticker/football.gif" hspace="10"></a>');
tNews.push('<a href="../fortbildung/index.php"><img src="../pics/ticker/fortbildung.gif" hspace="10"></a>');
tNews.push('<a href="../international/index.php"><img src="../pics/ticker/international.gif" hspace="10"></a>');
tNews.push('<a href="../kulturraeume2010/index.php"><img src="../pics/ticker/kulturraeume.gif" hspace="10"></a>');
tNews.push('<a href="../mobil/index.php"><img src="../pics/ticker/mobil.gif" hspace="10"></a>');
tNews.push('<a href="../openspace/index.php"><img src="../pics/ticker/openspace.gif" hspace="10"></a>');
tNews.push('<a href="../braunerpeter/index.php"><img src="../pics/ticker/braunerpeter.gif" hspace="10"></a>');
tNews.push('<a href="../cultures-of-berlin/index.php"><img src="../pics/ticker/berlin.gif" hspace="10"></a>');

//°°°°°°°°°°Delimiter zwischen den einzelnen News
tDelimiter  ='';

//°°°°°°°°°°Interval in ms
tInterval   =80;

//°°°°°°°°°°Stop bei mouseover?true:false
tStop       =true;

//°°°°°°°°°°Falls Leeraum zwischen News...hier Wert erhoehen...minimum:1
tRepeat     =2;

//°°°°°°°°°°Rahmen
tBorder     ='0px';

//°°°°°°°°°°Breite
tWidth      =479;

//°°°°°°°°°°Höhe
tHeight     =18;

//Abstand Rahmen->Inhalt (top+bottom)
tPadding    =0;

//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="overflow:hidden;border:' + tBorder +
                       ';width:' + tWidth + 'px;height:' + tHeight + 'px;' +
                       'padding:' + tPadding + 'px 0px ' + tPadding + ' px 0px;">' +
                       '<div style="width:' + tWidth + 'px;height:' + tHeight + 'px;'+
                       'overflow:hidden;clip:rect(0px '+tWidth+'px '+tHeight+'px 0px);position:relative">'+
                       '<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/tRepeat;
        if(Math.abs(tPos) > tOffset)
          {
            tPos=0;
          }
        tObj.style.left=tPos+'px';
        tPos=parseInt(tPos)-1;
      }

    tGo=setInterval('DM_ticken()',tInterval);
    }